feat: allow no audio input while robot is speaking

The VAD agent will discard its current buffer and retry receiving data.

ref: N25B-213
This commit is contained in:
Twirre Meulenbelt
2025-10-28 10:58:28 +01:00
parent a44df4781b
commit 833dd6c9d4
2 changed files with 3 additions and 11 deletions

View File

@@ -86,9 +86,7 @@ async def test_no_data(audio_in_socket, audio_out_socket, streaming):
audio_in_poller.poll.return_value = None
streaming.audio_in_poller = audio_in_poller
assert streaming.i_since_data == 0
await streaming.run()
audio_out_socket.send.assert_not_called()
assert streaming.i_since_data == 1
assert len(streaming.audio_buffer) == 0