i deployed agent on livekit clould but the tts voi...
# ask-ai
n
i deployed agent on livekit clould but the tts voice is corrupted while its working fine on localhost
t
Thanks for reaching out, Mohamed. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m sorry you’re seeing corrupted TTS in cloud but not on localhost. I’ll help troubleshoot. Quick questions to narrow this down: 1. How is the agent sending TTS to LiveKit? (using
session.say()
,
tts_node
, or pre-synthesized audio file?) 2. What audio format/sample rate are you generating for TTS (e.g., 48 kHz mono, 16-bit)? Is it different between localhost and cloud? 3. Are you seeing specific symptoms (robotic/stuttered audio, slicing, silence)? Any console/server logs or error lines you can share? 4. Do you have any audio processing enabled in the cloud room (noise cancellation/BVC, codec settings, or media pipeline transforms)? 5. Can you check connection metrics for the cloud room (packet loss, jitter)? If you can share TTS metrics like `ttfb`/`duration`, that helps. What you can try right away: • Ensure TTS audio is encoded at 48 kHz, mono and matches the expected codec before sending. • Disable any noise cancellation or audio transforms for the agent’s output track to confirm they aren’t altering synthesized audio. • Compare the exact TTS provider/model/voice settings between localhost and cloud to ensure they match. Send your answers and any logs or a short recording of the corrupted audio and I’ll suggest targeted next steps. Sources: Enhanced noise cancellation | LiveKit docs | Agent speech and audio | LiveKit docs | Observability data hooks | LiveKit docs