bhagyabonam commited on
Commit
9a1cd8f
·
verified ·
1 Parent(s): 169380d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -458,9 +458,9 @@ def audio_callback(indata, frames, time, status):
458
  def transcribe_audio_stream():
459
  """Continuously captures microphone input, transcribes, and processes the speech."""
460
  samplerate = 16000
461
- duration = 5 # Adjust duration for processing chunks in real-time
462
 
463
- # Set up the microphone stream
464
  with sd.InputStream(samplerate=samplerate, channels=1, callback=audio_callback):
465
  st.write("Listening... Speak into the microphone.")
466
 
 
458
  def transcribe_audio_stream():
459
  """Continuously captures microphone input, transcribes, and processes the speech."""
460
  samplerate = 16000
461
+ duration = 5
462
 
463
+
464
  with sd.InputStream(samplerate=samplerate, channels=1, callback=audio_callback):
465
  st.write("Listening... Speak into the microphone.")
466