Skip to content

Commit 875451a

Browse files
authored
Fix syntax bug on stream emptying
1 parent 0d0c4d6 commit 875451a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/microphone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def start_stream(callback):
1818
try:
1919
y = np.fromstring(stream.read(frames_per_buffer, exception_on_overflow=False), dtype=np.int16)
2020
y = y.astype(np.float32)
21-
stream.read(get_read_available(), exception_on_overflow=False)
21+
stream.read(stream.get_read_available(), exception_on_overflow=False)
2222
callback(y)
2323
except IOError:
2424
overflows += 1

0 commit comments

Comments
 (0)