Update microphone.py
Browse files- microphone.py +2 -1
microphone.py
CHANGED
@@ -30,7 +30,8 @@ class MicrophoneStream:
|
|
30 |
# Run the audio stream asynchronously to fill the buffer object.
|
31 |
# This is necessary so that the input device's buffer doesn't
|
32 |
# overflow while the calling thread makes network requests, etc.
|
33 |
-
stream_callback=self._fill_buffer
|
|
|
34 |
)
|
35 |
|
36 |
self.closed = False
|
|
|
30 |
# Run the audio stream asynchronously to fill the buffer object.
|
31 |
# This is necessary so that the input device's buffer doesn't
|
32 |
# overflow while the calling thread makes network requests, etc.
|
33 |
+
stream_callback=self._fill_buffer,
|
34 |
+
input_device_index=0
|
35 |
)
|
36 |
|
37 |
self.closed = False
|