From 7692b9d47f5d2ee72da182d6a48f9b10a71c48b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Tue, 23 Jul 2024 21:30:28 +0200 Subject: [PATCH] Update agent_output.py --- livekit-agents/livekit/agents/voice_assistant/agent_output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/livekit-agents/livekit/agents/voice_assistant/agent_output.py b/livekit-agents/livekit/agents/voice_assistant/agent_output.py index e973a8649..4bc005180 100644 --- a/livekit-agents/livekit/agents/voice_assistant/agent_output.py +++ b/livekit-agents/livekit/agents/voice_assistant/agent_output.py @@ -116,7 +116,7 @@ async def _synthesize_task(self, handle: SynthesisHandle) -> None: co = _stream_synthesis_task(handle._speech_source, handle) synth = asyncio.create_task(co) - synth.add_done_callback(lambda _: handle._buf_ch.close) + synth.add_done_callback(lambda _: handle._buf_ch.close()) try: _ = await asyncio.wait( [synth, handle._interrupt_fut], return_when=asyncio.FIRST_COMPLETED