Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ def on_agent_state_changed(ev):
if ev.new_state == "idle":
self.send_event({"type": "agent.stop_listening", "event_id": str(uuid.uuid4())})

@self._agent_session.on("close")
def on_agent_session_close(ev):
self._msg_ch.close()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can close it at the end of _send_task or the final finally: block.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After reading the issue, I think the change makes sense.


self._audio_buffer = QueueAudioOutput(sample_rate=SAMPLE_RATE)
await self._audio_buffer.start()
self._audio_buffer.on("clear_buffer", self._on_clear_buffer)
Expand Down
Loading