narrow-chef-71655
10/15/2025, 7:31 AMtall-airline-16756
10/15/2025, 7:31 AMtall-airline-16756
10/15/2025, 7:32 AMinterrupt() method on the agent session. This lets you cancel current and queued speech, and even interrupt background speeches if you want. Here's a quick example:
# Interrupt current and queued speech
future = session.interrupt(force=False)
await future # Wait for interruption to complete
Just a quick note: the force parameter decides if interruptions follow the allow_interruptions setting. If you set force=True, it will interrupt no matter what.
Please don’t hesitate to reach out if you want me to walk you through this further or if you have any other questions. I’m here to help!
Sources: Events and error handling | LiveKit Docs | How to Handle Speech Interruptions More Naturally | Turn detection and interruptions | LiveKit Docs | Agent Session & Client Integration | livekit/livekit_composite | DeepWiki | Web and mobile frontends | LiveKit Docs