[skip-ci] feat(portaudio timeout): decresing portaudio stream timeout for low latency

This commit is contained in:
CarolinePascal
2025-05-28 20:45:59 +02:00
parent 6f6e046c53
commit 90780c4de8
@@ -208,7 +208,7 @@ class PortAudioMicrophone(Microphone):
while not event.is_set():
try:
file.write(
queue.get(timeout=0.01)
queue.get(timeout=0.005)
) # Timeout set as the usual sounddevice buffer size. get_nowait is not possible here as it saturates the thread.
queue.task_done()
except Empty: