high-hairdresser-79251
11/03/2025, 4:31 AMsession = AgentSession(
llm=google.realtime.RealtimeModel(
Unable to use Google Realtime llm, getting error says that: 2025-11-03 093340,280 - ERROR outbound-caller - Unhandled error while getting session: module 'livekit.plugins.google' has no attribute 'realtime' {tall-airline-16756
11/03/2025, 4:31 AMtall-airline-16756
11/03/2025, 4:32 AMRealtimeModel is inside the beta namespace within the livekit.plugins.google package. To fix this, you’ll want to make sure you’re importing it with the beta prefix. Here’s a little example to guide you:
from livekit.plugins import google
# Correct usage with beta namespace
llm = google.beta.realtime.RealtimeModel(
voice="alloy",
input_audio_transcription=None,
output_audio_transcription=None,
)
Also, it’s a good idea to double-check that you have the latest version of livekit-plugins-google installed. You can update it by running:
pip install --upgrade livekit-plugins-google
If you run into any more questions or need a hand with the setup, just let me know—I’m here to help!
Sources: plugins/google/src/beta/realtime/index.ts | examples/voice_agents/realtime_turn_detector.pyhigh-hairdresser-79251
11/03/2025, 4:34 AMhigh-hairdresser-79251
11/03/2025, 4:34 AMtall-airline-16756
11/03/2025, 4:35 AMRealtimeModel in LiveKit is accessed through the beta namespace. This applies to both the Python and JavaScript/TypeScript SDKs. For example, in Python, you would do it like this:
from livekit.plugins import google
llm = google.beta.realtime.RealtimeModel(
model="gemini-2.5-flash-native-audio-preview-09-2025",
_gemini_tools=[types.GoogleSearch()],
)
Sometimes, the documentation you’re looking at might not be fully up to date. If you notice any differences, please double-check that you’re using the latest SDK version and following the beta namespace pattern to ensure everything works smoothly.
If you have any questions or need a hand with this, just let me know—I’m here to help!
Sources: livekit-plugins/livekit-plugins-google/livekit/plugins/google/realtime/__in... | plugins/google/src/beta/realtime/index.ts