Spaces:
Sleeping
Sleeping
Michael Hu
commited on
Commit
·
31708ca
1
Parent(s):
0ee4f42
default to parakeet model as it is much faster
Browse files- utils/stt.py +2 -2
utils/stt.py
CHANGED
|
@@ -141,7 +141,7 @@ class ASRFactory:
|
|
| 141 |
"""Factory for creating ASR model instances"""
|
| 142 |
|
| 143 |
@staticmethod
|
| 144 |
-
def get_model(model_name="
|
| 145 |
"""
|
| 146 |
Get ASR model by name
|
| 147 |
Args:
|
|
@@ -158,7 +158,7 @@ class ASRFactory:
|
|
| 158 |
return WhisperModel()
|
| 159 |
|
| 160 |
|
| 161 |
-
def transcribe_audio(audio_path, model_name="
|
| 162 |
"""
|
| 163 |
Convert audio file to text using specified ASR model
|
| 164 |
Args:
|
|
|
|
| 141 |
"""Factory for creating ASR model instances"""
|
| 142 |
|
| 143 |
@staticmethod
|
| 144 |
+
def get_model(model_name="parakeet"):
|
| 145 |
"""
|
| 146 |
Get ASR model by name
|
| 147 |
Args:
|
|
|
|
| 158 |
return WhisperModel()
|
| 159 |
|
| 160 |
|
| 161 |
+
def transcribe_audio(audio_path, model_name="parakeet"):
|
| 162 |
"""
|
| 163 |
Convert audio file to text using specified ASR model
|
| 164 |
Args:
|