bhagyabonam commited on
Commit
b555903
·
verified ·
1 Parent(s): 4ed18ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -459,9 +459,9 @@ def transcribe_audio_stream():
459
  """Continuously captures microphone input, transcribes, and processes the speech."""
460
  samplerate = 16000
461
  duration = 5
462
- device_index = 0
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:
 
459
  """Continuously captures microphone input, transcribes, and processes the speech."""
460
  samplerate = 16000
461
  duration = 5
462
+ # device_index = 0
463
 
464
+ with sd.InputStream(samplerate=samplerate, channels=1, callback=audio_callback):
465
  st.write("Listening... Speak into the microphone.")
466
 
467
  while True: