#Sometimes our agents suddenly begins to truncate it's text or audio. Like "tienes alguna enfermedad
1 messages · Page 1 of 1 (latest)
Short, sudden cut‑offs are usually caused by interruption handling, timeouts, streaming/buffering, or a tool ending the call. Here are the documented mitigations:
-
Disable or tune interruptions (barge‑in). If background speech/noise is detected while the agent is talking, the agent can stop mid‑sentence. You can disable interruptions in the agent’s Advanced tab under Client Events when you need complete message delivery. (elevenlabs.io)
-
Review turn timeouts. Very short “Turn Timeout” values can push the dialogue forward too aggressively. Configure an appropriate timeout (1–30 s) in Conversation Flow to avoid premature prompts. (elevenlabs.io)
-
Verify WebSocket audio handling in your client. Ensure you buffer audio chunks, handle interruption cleanup, respond to PINGs, and use compatible audio formats; improper handling can manifest as early audio stops on the client. (elevenlabs.io)
-
If you stream TTS via WebSockets, manage buffering explicitly:
- Use chunk_length_schedule defaults or adjust judiciously.
- At the end of a turn, send flush: true to force any buffered text to generate audio.
- Keep the connection alive to avoid the 20‑second inactivity auto‑close (send " " as a keep‑alive). (elevenlabs.io)
-
Avoid the deprecated optimize_streaming_latency parameter. ElevenLabs no longer recommends using it. Remove it from requests to prevent unexpected behavior. (help.elevenlabs.io)
-
Check that the End Call system tool isn’t being invoked too early by your prompts/tool‑use logic. You can remove it or constrain its trigger conditions. (elevenlabs.io)
-
If you constrain LLM output length, use max_tokens cautiously—over‑restricting it can shorten responses. (elevenlabs.io)
If cut‑offs persist after these changes, please share call IDs, logs, and short audio samples with Support so we can inspect server‑side traces. (help.elevenlabs.io)
Sources:
Interruptions — ElevenLabs Documentation
Conversation flow | ElevenLabs Documentation
Client events | ElevenLabs Documentation
Generate audio in real-time | ElevenLabs Documentation
Can I reduce API latency? – ElevenLabs
End call | ElevenLabs Documentation
Optimizing LLM costs | ElevenLabs Documentation
How can I contact support? – ElevenLabs
But this behavior happens even in text only mode