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