salomonsky commited on
Commit
4b7ac92
·
verified ·
1 Parent(s): 33718f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ if "history" not in st.session_state:
12
 
13
  def recognize_speech(audio_data, show_messages=True):
14
  recognizer = sr.Recognizer()
15
- audio_recording = sr.Microphone(device_index=-1, sample_rate=16000, chunk_size=1024)
16
 
17
  with audio_recording as source:
18
  recognizer.adjust_for_ambient_noise(source)
 
12
 
13
  def recognize_speech(audio_data, show_messages=True):
14
  recognizer = sr.Recognizer()
15
+ audio_recording = sr.Microphone(device_index=4, sample_rate=16000, chunk_size=1024)
16
 
17
  with audio_recording as source:
18
  recognizer.adjust_for_ambient_noise(source)