Skip to content

Commit 2adf0e6

Browse files
committed
fix readme
1 parent 709fe38 commit 2adf0e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ async def main():
127127
)
128128
await conversation.start()
129129
print("Conversation started, press Ctrl+C to end")
130-
signal.signal(signal.SIGINT, lambda _0, _1: conversation.terminate())
130+
signal.signal(
131+
signal.SIGINT, lambda _0, _1: asyncio.create_task(conversation.terminate())
132+
)
131133
while conversation.is_active():
132134
chunk = await microphone_input.get_audio()
133135
conversation.receive_audio(chunk)

0 commit comments

Comments
 (0)