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