mirror of
https://github.com/huggingface/lerobot.git
synced 2026-06-25 12:17:08 +00:00
[skip-ci] feat(portaudio timeout): decresing portaudio stream timeout for low latency
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user