Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -461,7 +461,7 @@ def transcribe_audio_stream():
|
|
461 |
duration = 5
|
462 |
device_index = 1
|
463 |
|
464 |
-
with sd.InputStream(samplerate=samplerate, channels=1, callback=audio_callback):
|
465 |
st.write("Listening... Speak into the microphone.")
|
466 |
|
467 |
while True:
|
|
|
461 |
duration = 5
|
462 |
device_index = 1
|
463 |
|
464 |
+
with sd.InputStream(samplerate=samplerate, channels=1, callback=audio_callback, device=device_index):
|
465 |
st.write("Listening... Speak into the microphone.")
|
466 |
|
467 |
while True:
|