red-dentist-96118
04/21/2026, 6:10 PMtall-airline-16756
04/21/2026, 6:10 PMtall-airline-16756
04/21/2026, 6:11 PMmodalities = [TEXT]. I can help figure this out.
A few facts first: modalities = [TEXT] is supported for Gemini Live when using the Google realtime plugin (text-only LLM with a separate TTS), but it does not work with native-audio models. Also, certain Gemini Live preview models (for example some Flash Live Preview builds) have limits on mid-session methods that can cause failures if used.
To diagnose your crash I need a bit more info:
• Which exact Gemini model/version are you using? (e.g., gemini-2.5-flash-native-audio-preview, gemini-3.1-flash-live-preview, etc.)
• Are you using a native-audio model or a non-native-audio model?
• Your runtime environment: LiveKit Cloud or self-hosted, and language/runtime (Python or Node.js) and versions.
• The exact error message or stack trace you see when it crashes (copy/paste is best).
• A minimal code snippet or config showing how you instantiate the session (if possible).
With those details I’ll point to the specific cause and next steps.
Sources: Gemini Live API plugin | LiveKit Documentation | Realtime models overview | LiveKit Documentation, with interactive elementsred-dentist-96118
04/21/2026, 6:11 PMgemini-3.1-flash-live-previewtall-airline-16756
04/21/2026, 6:11 PMgemini-3.1-flash-live-preview. That model has known limitations with mid-session methods which can cause failures if the session calls unsupported APIs.
To pinpoint the crash, could you share the following:
• The exact error message or stack trace you see (copy/paste).
• Whether you configured a native-audio model or a non-native-audio model.
• Runtime environment: LiveKit Cloud or self-hosted, and language/runtime (Python or Node.js) and versions.
• A minimal code snippet showing how you create the session and set modalities = [TEXT] (redact secrets).
Once I have that I’ll identify the likely cause and recommend the next steps.
, with interactive elementsred-dentist-96118
04/21/2026, 6:24 PMtall-airline-16756
04/21/2026, 6:25 PMgemini-3.1-flash-live-preview in TEXT mode with Cartesia TTS. That model has known mid-session limitations which can cause failures when unsupported fields or methods are used (your workaround to strip speech_config is a good sign you’re hitting those boundaries).
To diagnose the crash quickly, please paste:
• The exact error message or full stack trace you get when it crashes.
• Your Python version and whether you’re running on LiveKit Cloud or self-hosted.
• Confirm the .env.local keys you set (no secrets) show you’re using a non‑native‑audio model (i.e., not a native-audio variant).
If you can’t paste the full trace, tell me whether the crash happens:
• Immediately on session start, or
• After a user speaks / after the agent calls any mid-session methods (like generate_reply(), update_instructions(), etc.).
With those details I’ll recommend the precise workaround or next steps.
, with interactive elementstall-airline-16756
04/21/2026, 6:26 PMnutritious-bird-16298
04/22/2026, 12:55 AMred-dentist-96118
04/22/2026, 12:57 AM