powerful-activity-81417
09/09/2025, 5:55 AMdry-park-61894
09/20/2025, 8:57 AMinterrupt() method for this. Then you could tie it to your front end mute button with a RPC. Not exactly sure how your app is setup, but the microphone mute is typically meant for the user's local input device. You may be better off adding an additional agent mute/interrupt button. Then you could manage states separately in case the user ever did want to mute themselves, but let the agent finish speaking. Good luck!
handle = session.say("Hello world")
handle.interrupt()
# or from the session
session.interrupt()
https://docs.livekit.io/agents/build/audio/#interruptionspowerful-activity-81417
09/22/2025, 11:18 AM