My tts_request is showing that audio is outputted,...
# ask-ai
g
My tts_request is showing that audio is outputted, but the agent speaking does not match and nothing is said at all. I am using Cartesia
t
Thanks for reaching out, Aumesh. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm sorry to hear you're having trouble with the TTS request in Cartesia. Let's work through this together! Here are some helpful steps you can try to get things back on track: 1. Check WebSocket Connection: Make sure your WebSocket connection is steady. If needed, try increasing the
chunkTimeout
parameter to something like 10 seconds to give it a bit more time. 2. Verify Model and API Version: It’s important to use compatible model and API version combinations. For those advanced features, double-check that you’re using the right model (like
sonic-2-2025-03-07
) along with the correct API version. 3. Audio Output Configuration: Take a moment to confirm that audio output is enabled in your agent session configuration. 4. Monitor Agent State Transitions: Adding some logging to track agent state changes can be really helpful to ensure everything switches smoothly between speaking and listening states. 5. Debug Audio Emitter: It’s a good idea to verify that audio frames are being generated properly and that the segments match what you expect. Adding debugging logs here can shed some light on what’s happening. If any of these steps feel tricky or if you’d like me to walk you through them in more detail, please don’t hesitate to reach out. I’m here to help you every step of the way! Sources: tests/test_tts.py | plugins/cartesia/src/tts.test.ts | How to detect when an agent has finished speaking