mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-23 09:46:00 +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():
|
while not event.is_set():
|
||||||
try:
|
try:
|
||||||
file.write(
|
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.
|
) # Timeout set as the usual sounddevice buffer size. get_nowait is not possible here as it saturates the thread.
|
||||||
queue.task_done()
|
queue.task_done()
|
||||||
except Empty:
|
except Empty:
|
||||||
|
|||||||
Reference in New Issue
Block a user