What could be the possible causes for an agent whi...
# ask-ai
a
What could be the possible causes for an agent which was working fine would suddenly stop responding even though the transcription is available but on phone call there is no voice. it happens alot
t
Thanks for reaching out, Aryan. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I understand this is happening often and is frustrating. Below are the likely causes and concise troubleshooting steps to check, starting with the highest-probability items. Likely causes • TTS provider failing or timing out (LLM/transcription works but audio synthesis fails). • Agent audio output disabled (e.g.,
audio_enabled=False
or
session.output.set_audio_enabled(False)
). • Agent speech interrupted/cancelled by voice activity detection or turn-preemption (agent begins synthesis but cancels). • TTS node or pipeline throwing an unhandled error (synthesis aborted without fallback). • SIP/telephony gateway or codec negotiation issue (agent publishes audio but PSTN endpoint doesn’t receive it). • RTP/media delivery problems (packet loss, firewall, NAT) preventing audio even though signaling/transcription succeeds. • Room/session reconnection instability (media tracks not re-established after a blip). Quick troubleshooting checklist (run these on the next occurrence) 1. Confirm the agent is publishing an audio track during the call (inspect the room or simulate the call). 2. Check server logs and agent observability traces for TTS errors, timeouts, or ErrorEvents at the moment voice should be generated. 3. Verify
audio_enabled
is true in output settings and no code path disables audio during the call. 4. Test with a different TTS provider or enable a FallbackAdapter to rule out provider-specific failures. 5. Reproduce the issue while capturing RTP/network stats for packet loss, jitter, or firewall drops between agent ↔️ LiveKit and LiveKit ↔️ SIP gateway. 6. If using SIP/PSTN, inspect gateway logs and codec negotiation; verify the trunk and routing are healthy. 7. Check VAD/turn-interruption settings and
preemptive_generation
behavior — reduce aggressiveness to see if synthesis is being cancelled. 8. If you have a custom
tts_node
, add error handling/retries and log uncaught exceptions. If you’d like, tell me which of these you can check now (logs, whether you use SIP, which TTS provider, and whether
audio_enabled
is used in your code) and I’ll suggest the next specific commands/logs or the best place to look. Sources: Events and error handling | LiveKit docs | Text and transcriptions | LiveKit docs | Turn detection and interruptions | LiveKit Docs | Agent session | LiveKit docs | Make outbound calls | LiveKit docs