wooden-librarian-60399
09/17/2025, 5:15 AMtall-airline-16756
09/17/2025, 5:15 AMtall-airline-16756
09/17/2025, 5:15 AMagent.interrupt() method along with the interrupt_all=True parameter.
Here’s a quick rundown of how it works:
• The agent.interrupt() method will immediately stop any speech the agent is currently making.
• By adding interrupt_all=True, it also halts any speech that’s waiting in the pipeline.
• Importantly, this method works no matter the allow_interruptions setting, so it can interrupt speech that would normally be uninterruptible.
Here’s an example in Python to guide you:
# Interrupt current and all pending speech
agent.interrupt(interrupt_all=True)
Just a quick note: this feature is currently available only in the Python SDK. If you’re working with another language, I recommend checking the latest documentation or exploring similar session control options that might help achieve the same result.
Sources: VoicePipelineAgent | LiveKit Docs | VoicePipelineAgent | LiveKit Docs | Agent speech and audio | LiveKit Docs