csukuangfj
commited on
Commit
•
f968199
1
Parent(s):
c0c87b2
minor fixes
Browse files
model.py
CHANGED
@@ -147,9 +147,7 @@ def _get_chinese_dialect_models(repo_id: str) -> sherpa_onnx.OfflineRecognizer:
|
|
147 |
|
148 |
|
149 |
@lru_cache(maxsize=10)
|
150 |
-
def _get_russian_pre_trained_model_ctc(
|
151 |
-
repo_id: str, decoding_method: str, num_active_paths: int
|
152 |
-
) -> sherpa_onnx.OfflineRecognizer:
|
153 |
assert repo_id in (
|
154 |
"csukuangfj/sherpa-onnx-nemo-ctc-giga-am-russian-2024-10-24",
|
155 |
), repo_id
|
@@ -172,9 +170,7 @@ def _get_russian_pre_trained_model_ctc(
|
|
172 |
|
173 |
|
174 |
@lru_cache(maxsize=10)
|
175 |
-
def _get_russian_pre_trained_model(
|
176 |
-
repo_id: str, decoding_method: str, num_active_paths: int
|
177 |
-
) -> sherpa_onnx.OfflineRecognizer:
|
178 |
assert repo_id in (
|
179 |
"alphacep/vosk-model-ru",
|
180 |
"alphacep/vosk-model-small-ru",
|
@@ -225,7 +221,6 @@ def _get_russian_pre_trained_model(
|
|
225 |
num_threads=2,
|
226 |
sample_rate=16000,
|
227 |
feature_dim=80,
|
228 |
-
decoding_method=decoding_method,
|
229 |
model_type=model_type,
|
230 |
)
|
231 |
|
|
|
147 |
|
148 |
|
149 |
@lru_cache(maxsize=10)
|
150 |
+
def _get_russian_pre_trained_model_ctc(repo_id: str) -> sherpa_onnx.OfflineRecognizer:
|
|
|
|
|
151 |
assert repo_id in (
|
152 |
"csukuangfj/sherpa-onnx-nemo-ctc-giga-am-russian-2024-10-24",
|
153 |
), repo_id
|
|
|
170 |
|
171 |
|
172 |
@lru_cache(maxsize=10)
|
173 |
+
def _get_russian_pre_trained_model(repo_id: str) -> sherpa_onnx.OfflineRecognizer:
|
|
|
|
|
174 |
assert repo_id in (
|
175 |
"alphacep/vosk-model-ru",
|
176 |
"alphacep/vosk-model-small-ru",
|
|
|
221 |
num_threads=2,
|
222 |
sample_rate=16000,
|
223 |
feature_dim=80,
|
|
|
224 |
model_type=model_type,
|
225 |
)
|
226 |
|