rich-dusk-37560
09/15/2025, 5:26 PMtall-airline-16756
09/15/2025, 5:26 PMtall-airline-16756
09/15/2025, 5:27 PMrich-dusk-37560
09/15/2025, 5:33 PMtall-airline-16756
09/15/2025, 5:35 PMagent.interrupt() method. This immediately stops the audio playback.
• Context Truncation: The truncate() method then updates the conversation state to reflect where the audio was interrupted. This keeps the transcript and context perfectly in sync with what the user heard.
When implementing this, you can customize the interruption behavior with parameters like allow_interruptions and interrupt_speech_duration. Just a heads up, platform-specific support can vary, so it’s a good idea to check that your setup matches the capabilities of your TTS engine or API.
If you'd like, feel free to share your specific requirements or the platform you're working with, and I’d be happy to guide you through the setup step-by-step.
Sources: VoicePipelineAgent | LiveKit Docs | VoicePipelineAgent | LiveKit Docs | livekit-plugins/livekit-plugins-ultravox/livekit/plugins/ultravox/realtime/... | agents/src/voice/agent_activity.ts | Turn detection and interruptions | LiveKit Docs