little-cat-27217
11/02/2025, 9:13 AMtall-airline-16756
11/02/2025, 9:13 AMtall-airline-16756
11/02/2025, 9:13 AMlittle-cat-27217
11/02/2025, 9:19 AMtall-airline-16756
11/02/2025, 9:20 AMlittle-cat-27217
11/02/2025, 9:24 AMtall-airline-16756
11/02/2025, 9:24 AMmodalities=["text", "audio"]. If it’s only ["text"], the API won’t generate audio, and it will fall back to using Text-to-Speech (TTS).
2. Check backend logs: Keep an eye out for warnings like "text response received from realtime API, falling back to use a TTS model." This usually means the API didn’t send audio.
3. Monitor the "response_done" event: See if the response status shows as "incomplete" or "failed," which might be due to content filtering, server errors, or rate limits.
4. Validate API key and model: Double-check that your API key has access to the Realtime API and that the model you’re using supports audio output.
5. Test with default presets: Try using a known working preset like "Helpful AI" or "Customer Support" in the LiveKit Realtime Playground to compare and see if the issue persists.
These steps should guide you toward identifying and fixing the problem. If you hit any bumps or have specific errors pop up while troubleshooting, please don’t hesitate to reach out—I’m here to help!
Sources: livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/realtime/real... | web/src/data/presets.tslittle-cat-27217
11/02/2025, 9:29 AMmodalities=["text", "audio"]. If it’s only ["text"], the API won’t generate audio, and it will fall back to using Text-to-Speech (TTS).tall-airline-16756
11/02/2025, 9:29 AMmodalities=["text", "audio"]. If you see it set to just ["text"], you can update it to include "audio" as well.
2. Inspect agent logs: When the agent starts up, it logs its configuration. Look out for a log entry similar to: starting MultimodalAgent with config: {config.to_dict()}. This will help you confirm which modalities are active.
3. Use the playground UI: The LiveKit playground UI has a handy "Response modalities" hover card that shows the current setting (like "Audio + Text"). It’s a quick way to double-check your configuration.
4. Dynamic updates: If you want to change modalities while a session is running, you can use the pg.updateConfig RPC method to update things on the fly. The agent will log any changes with the details.
If you have any questions or need a hand finding or adjusting these settings, please don’t hesitate to reach out. I’m here to help!
Sources: OpenAI Realtime API plugin guide | LiveKit docs | Azure OpenAI Realtime API and LiveKit | LiveKit Docs | Text and transcriptions | LiveKit docs | How to Set Up Speech-to-Text Input with Text-Only Output in LiveKit Agents | web/src/components/modalities-selector.tsx