high-hairdresser-79251
10/31/2025, 12:22 PMsession = AgentSession(
llm=google.realtime.RealtimeModel(
from:
session = AgentSession(
llm=google.beta.realtime.RealtimeModel(tall-airline-16756
10/31/2025, 12:23 PMtall-airline-16756
10/31/2025, 12:23 PMlivekit-plugins-google package doesn’t include the stable realtime module yet. No worries—here’s how we can fix this together:
1. First, try updating the package to the latest version by running this command:
pip install --upgrade livekit-plugins-google
1. Next, let’s check that the installation worked by importing the module like this:
from livekit.plugins.google.realtime import RealtimeModel
print("Successfully imported RealtimeModel")
1. Then, make sure you’re using the correct import syntax in your code:
from livekit.plugins import google
llm = google.realtime.RealtimeModel(
voice="Puck",
temperature=0.8,
modalities=["AUDIO"]
)
Also, please double-check that your environment is set up with the right configuration for the RealtimeModel, like the necessary Google API environment variables. If updating right now isn’t an option, you can temporarily use the beta version with this:
from livekit.plugins.google import beta
llm = beta.realtime.RealtimeModel()
If you run into any more questions or need a hand with anything else, just let me know—I’m here to help!
Sources: examples/voice_agents/realtime_with_tts.py | Real-time AI Models & Streaming | livekit/livekit_composite | DeepWiki