aloof-forest-57428
12/01/2025, 10:08 AMtall-airline-16756
12/01/2025, 10:08 AMtall-airline-16756
12/01/2025, 10:08 AMaudio_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