salmon-lighter-12882
05/17/2026, 9:01 AMtall-airline-16756
05/17/2026, 9:01 AMtall-airline-16756
05/17/2026, 9:01 AMmodalities=["text"] (not the default [ "text", "audio" ]).
• Explicitly set or disable TTS in the session. If the session includes a tts plugin or parameter, the model may still produce audio. To prevent the model from generating audio, remove the tts parameter or set it so audio is handled by a separate TTS service instead of the realtime model.
• If you’re loading conversation history, try a fresh session with modalities=["text"] (history can sometimes cause inconsistent outputs).
Example pattern to keep the model text-only:
session = AgentSession(
llm=openai.realtime.RealtimeModel(modalities=["text"]),
# no tts parameter here — or set tts to a separate TTS service only if you want audio
)
If you can paste the exact code/JSON you’re using to create the realtime session (the RealtimeModel or AgentSession snippet), I’ll point out what to change.
Sources: Realtime models overview | LiveKit Documentation, with interactive elements