We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87e9807 commit d774d26Copy full SHA for d774d26
livekit-agents/livekit/agents/voice/agent_session.py
@@ -767,11 +767,10 @@ async def _aclose_impl(
767
if self._activity is not None:
768
if not drain:
769
try:
770
- await self._activity.interrupt()
+ # force interrupt speeches when closing the session
771
+ await self._activity.interrupt(force=True)
772
except RuntimeError:
773
# uninterruptible speech
- # TODO(long): force interrupt or wait for it to finish?
774
- # it might be an audio played from the error callback
775
pass
776
await self._activity.drain()
777
0 commit comments