bhagyabonam commited on
Commit
737e6cb
·
verified ·
1 Parent(s): 8659b1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: