protect against exception on initial recording wait
This commit is contained in:
parent
412f1777bd
commit
86fc7446b0
@ -483,7 +483,7 @@ class PyAudioThreadedRecorder(threading.Thread):
|
||||
frames_per_buffer=chunk,
|
||||
)
|
||||
|
||||
stream.read(wait)
|
||||
stream.read(wait, exception_on_overflow=False)
|
||||
|
||||
data = b""
|
||||
while not self.finish:
|
||||
|
Loading…
Reference in New Issue
Block a user