Greetings! for some reason the TTS layer unexpecte...
# ask-ai
c
Greetings! for some reason the TTS layer unexpectedly stopped working in the telephony service, the TTS model i am using is Cartesia Sonic 3 and the voice is Tessa, the agent works perfectly fine in preview but when i pushed it to the telephony service and added the dispatch rules and set it up correctly according to the docs, when i call it, it won't speak back at all and when i checked the session agentic insights to see what went wrong, all these errors came up which indicates there is an issue with the TTS layer not functioning, do you have any idea on how to fix it?, here are the errors:
Copy code
-tts_node: APIError: no audio frames were pushed for text: This is Alex, could you connect me with the owner or the manager, please? (body=None, retryable=True)

-tts_request: APIError: no audio frames were pushed for text: This is Alex, could you connect me with the owner or the manager, please? (body=None, retryable=True)

-tts_request_run: APIConnectionError: Connection error. (body=None, retryable=True)

-Error in _tts_inference_task

-failed to synthesize speech, retrying in 2.0s
t
Thanks for reaching out, hub. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m looking at the TTS errors you pasted and will help troubleshoot the Cartesia Sonic-3 (Tessa) failure in telephony. I’ll address the specific errors you saw and give targeted checks and fixes. Acknowledging what you reported • The agent speaks correctly in preview but when pushed to telephony it receives text but fails to produce audio: errors show “no audio frames were pushed” and an
APIConnectionError
. What to check and try (in order) 1) Verify TTS descriptor is correct • Confirm the agent’s TTS config uses the cartesia descriptor format exactly:
cartesia/sonic-3:<voice_id>
with the correct Tessa voice_id. A wrong descriptor can cause the engine to accept text but produce no audio. 2) Confirm network connectivity from the telephony environment •
APIConnectionError
indicates outbound connection failures. Ensure the telephony runtime (SIP/telephony worker) can reach Cartesia endpoints. Check firewall/NAT, egress rules, or proxy settings for that service. 3) Check plugin auth (only if you use the Cartesia plugin) • If you configured Cartesia via plugin (not LiveKit-hosted inference), confirm the
CARTESIA_API_KEY
is set for the telephony environment. Missing credentials cause connection/auth failures. 4) Inspect Agent Observability / Trace view • Open the Agent Session trace for the failed call and verify: ◦ The TTS node receives the exact input text. ◦ Whether a request to Cartesia was sent and what the response/HTTP status was. ◦ Any timingouts or retry attempts. This pinpoints whether the failure is network, auth, or model-level. 5) Retry with a different model/voice or a minimal text • Test with another Cartesia voice or a smaller text snippet to see if the issue is model/voice-specific. • If failures persist across voices, it’s likely environmental (connectivity/auth) rather than the voice. 6) Enable or configure a fallback TTS adapter • Configure a fallback TTS provider (e.g., ElevenLabs/Deepgram) so telephony can continue if Cartesia is unreachable. This prevents full outages while you investigate. 7) Logs and retry behavior • Note the system is retrying (your logs show “retrying in 2.0s”). If trace logs show repeated connection failures, increase logging level on the telephony worker to capture HTTP request/response details for the Cartesia call. What I can help next • If you want, share: ◦ The TTS descriptor string you used (redact secrets/keys). ◦ Whether the telephony runtime uses the LiveKit-hosted Cartesia inference or the Cartesia plugin with
CARTESIA_API_KEY
. ◦ Any trace excerpt showing the Cartesia request/response (no secrets). I’ll use that to point to the exact failing step and recommend the next action. Would you like me to walk through checking the trace output with you? Sources: Cartesia TTS | LiveKit docs | Events and error handling | LiveKit docs | https://blog.livekit.io/streamline-troubleshooting-with-agent-observability/#/portal| | SIP troubleshooting guide | LiveKit docs | Cartesia TTS plugin guide | LiveKit docs
c
I'm deploying and running this directly from livekit's cloud not self hosted so what could be the issue?
t
Thanks — since you’re running on LiveKit Cloud, here are the most likely causes and exactly what to check next. What I’m addressing: TTS works in preview but fails on LiveKit Cloud with errors like “no audio frames were pushed” and
APIConnectionError
. Key checks (do these now) 1) Confirm the voice ID is a supported LiveKit inference voice • Don’t use a custom or unknown name like “tessa.” Replace it with a confirmed Cartesia Sonic‑3 voice UUID (example format:
cartesia/sonic-3:9626c31c-bec5-4cca-baa8-f8ba9e84c8bc
). Use a voice from Cartesia’s public voice library. 2) Ensure you’re using the inference descriptor format • In your agent config use:
tts="cartesia/sonic-3:<valid_voice_id>"
. Do not configure plugin-style instantiation for cloud inference. 3) Remove any Cartesia API keys from your env • LiveKit Cloud provides inference access; having
CARTESIA_API_KEY
set can force plugin behavior and cause conflicts. Remove it from your environment variables. 4) Test a simple TTS call and check the Agent Trace • Trigger a minimal
say()
(short text) in the agent and open Agent Session -> Trace for that call. Confirm the TTS node receives text and inspect the Cartesia request/response and any HTTP status or timeout. 5) Try a different built-in voice or model • Swap to another confirmed Cartesia voice (or model) to see if failures persist. If other voices work, the original voice was the issue. 6) Add a fallback TTS provider (temporary mitigation) • Configure a
FallbackAdapter
with another TTS (e.g., ElevenLabs) so telephony remains functional while you isolate Cartesia issues. If you’d like, share: • The exact
tts=
descriptor you’re using (redact any secrets). • A short trace output showing the TTS node request/response (no secrets). I’ll pinpoint whether it’s an invalid voice descriptor, inference/plugin mismatch, or a transient service error and give the next step. Sources: Cartesia TTS | LiveKit docs | Text-to-speech (TTS) models | LiveKit Docs | Cartesia TTS plugin guide | LiveKit docs | Models | LiveKit Docs | Events and error handling | LiveKit docs