bulky-wall-61623
09/25/2025, 7:10 AMtall-airline-16756
09/25/2025, 7:10 AMtall-airline-16756
09/25/2025, 7:11 AMtoggle method while the agent is speaking, the audio stops because LiveKit's framework interprets this action as a signal that you might want to interrupt or change the ongoing interaction. By default, this causes the agent's current speech to pause to avoid overlapping sounds.
If you'd prefer the playback to continue without interruptions, you can easily adjust this by setting options like allow_interruptions=False or by handling audio state changes thoughtfully within your application. I'm here to help if you'd like guidance on making these adjustments!
Sources: Text and transcriptions | LiveKit Docs | Agent speech and audio | LiveKit Docsbulky-wall-61623
09/25/2025, 7:13 AMtall-airline-16756
09/25/2025, 7:14 AMbulky-wall-61623
09/25/2025, 7:19 AMtall-airline-16756
09/25/2025, 7:20 AMbulky-wall-61623
09/29/2025, 3:10 AMtall-airline-16756
09/29/2025, 3:11 AMplayback_finished event to spot any interruptions or playback issues.
2. Double-check that your audio output is properly configured and connected before starting speech.
3. Use the current_speech property to programmatically confirm when playback is complete.
4. Keep an eye on agent_state_changed events to catch any early state changes.
5. Turn on debug logging to catch any warnings or errors related to audio output.
6. Try testing the audio output separately with a known audio file to see if the issue might be with the audio pipeline.
I hope these suggestions help you find and fix the problem. If you’d like, I’m here to guide you through any of these steps or answer any questions you have along the way.
Sources: Getting Help | livekit/livekit_composite | DeepWiki | Agent speech and audio | LiveKit Docs | agents/src/voice/agent_activity.ts | livekit-plugins/livekit-plugins-ultravox/livekit/plugins/ultravox/realtime/...