mysterious-agent-76276
08/03/2025, 1:59 PM["text"+"audio"] it overrides my TTS model with the OpenAI model.tall-airline-16756
08/03/2025, 1:59 PMtall-airline-16756
08/03/2025, 1:59 PMAgentSession configuration. This ensures the RealtimeModel handles speech comprehension, while your chosen TTS provider manages speech output.
Here’s an example configuration:
session = AgentSession(
llm=openai.realtime.RealtimeModel(modalities=["text"]),
tts=cartesia.TTS() # Or any other TTS plugin
)
Make sure to set modalities=["text"] for the RealtimeModel to avoid overriding your TTS model. Let me know if you need further assistance!mysterious-agent-76276
08/03/2025, 2:00 PMstt argument in the AgentSession, it somehow defaults to the RealtimeModel's STT capabilities?tall-airline-16756
08/03/2025, 2:01 PMstt argument in the AgentSession, it’ll automatically use the RealtimeModel’s built-in STT features. That’s because the RealtimeModel nicely handles both STT and LLM functions all by itself.
But, if you’re working with LiveKit’s turn detector, leaving out the stt argument will lead to an error. That’s because the turn detector needs a separate STT plugin to work properly. So, just make sure to include the stt argument with a valid STT plugin if you’re relying on LiveKit’s turn detection instead of the RealtimeModel’s built-in capabilities. Hope that helps!