Spaces:
Build error
Build error
change
Browse files- client/src/main.py +1 -0
client/src/main.py
CHANGED
@@ -35,6 +35,7 @@ def main(transcriptions_queue):
|
|
35 |
speech_recognizer = get_speech_recognizer(energy_threshold=energy_threshold)
|
36 |
|
37 |
with microphone:
|
|
|
38 |
speech_recognizer.adjust_for_ambient_noise(source=microphone)
|
39 |
|
40 |
def record_callback(_, audio: sr.AudioData) -> None:
|
|
|
35 |
speech_recognizer = get_speech_recognizer(energy_threshold=energy_threshold)
|
36 |
|
37 |
with microphone:
|
38 |
+
print('microphone is:', microphone)
|
39 |
speech_recognizer.adjust_for_ambient_noise(source=microphone)
|
40 |
|
41 |
def record_callback(_, audio: sr.AudioData) -> None:
|