We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d0c4d6 commit 875451aCopy full SHA for 875451a
python/microphone.py
@@ -18,7 +18,7 @@ def start_stream(callback):
18
try:
19
y = np.fromstring(stream.read(frames_per_buffer, exception_on_overflow=False), dtype=np.int16)
20
y = y.astype(np.float32)
21
- stream.read(get_read_available(), exception_on_overflow=False)
+ stream.read(stream.get_read_available(), exception_on_overflow=False)
22
callback(y)
23
except IOError:
24
overflows += 1
0 commit comments