Spaces:
Build error
Build error
client/src/audio_utils.py
CHANGED
@@ -20,6 +20,7 @@ def get_microphone(default_microphone: str | None = "Blue", sample_rate: int = 1
|
|
20 |
for index, name in enumerate(sr.Microphone.list_microphone_names()):
|
21 |
print(f"Microphone {index}: {name}")
|
22 |
if mic_name in name:
|
|
|
23 |
return sr.Microphone(sample_rate=sample_rate, device_index=index)
|
24 |
return sr.Microphone(sample_rate=sample_rate)
|
25 |
|
|
|
20 |
for index, name in enumerate(sr.Microphone.list_microphone_names()):
|
21 |
print(f"Microphone {index}: {name}")
|
22 |
if mic_name in name:
|
23 |
+
print('Microphone found:', name, index)
|
24 |
return sr.Microphone(sample_rate=sample_rate, device_index=index)
|
25 |
return sr.Microphone(sample_rate=sample_rate)
|
26 |
|