Spaces:
Running
Running
Irpan
commited on
Commit
·
2b3019f
1
Parent(s):
e2dd467
asr
Browse files
asr.py
CHANGED
@@ -77,8 +77,9 @@ def transcribe(audio_data, model_id) -> str:
|
|
77 |
|
78 |
model = models_info[model_id]["model"]
|
79 |
processor = models_info[model_id]["processor"]
|
80 |
-
target_sr = processor.feature_extractor.sampling_rate
|
81 |
ctc_model = models_info[model_id]["ctc_model"]
|
|
|
82 |
|
83 |
# Resample if needed
|
84 |
if sampling_rate != target_sr:
|
|
|
77 |
|
78 |
model = models_info[model_id]["model"]
|
79 |
processor = models_info[model_id]["processor"]
|
80 |
+
target_sr = 16000 #processor.feature_extractor.sampling_rate
|
81 |
ctc_model = models_info[model_id]["ctc_model"]
|
82 |
+
|
83 |
|
84 |
# Resample if needed
|
85 |
if sampling_rate != target_sr:
|