Spaces:
Build error
Build error
client/src/audio_utils.py
CHANGED
@@ -6,7 +6,7 @@ import numpy as np
|
|
6 |
import speech_recognition as sr
|
7 |
|
8 |
|
9 |
-
def get_microphone(default_microphone: str | None = "
|
10 |
"""Get the specified system microphone if available."""
|
11 |
# Important for linux users.
|
12 |
# Prevents permanent application hang and crash by using the wrong Microphone
|
|
|
6 |
import speech_recognition as sr
|
7 |
|
8 |
|
9 |
+
def get_microphone(default_microphone: str | None = "Blue", sample_rate: int = 16000) -> sr.Microphone:
|
10 |
"""Get the specified system microphone if available."""
|
11 |
# Important for linux users.
|
12 |
# Prevents permanent application hang and crash by using the wrong Microphone
|