Spaces:
Sleeping
Sleeping
soxr resampling
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ mid_delay = ceil((chunk_len + (buffer_len - chunk_len) / 2) / model_stride_in_se
|
|
33 |
|
34 |
def resample(audio):
|
35 |
audio_16k, sr = librosa.load(audio, sr = asr_model.cfg["sample_rate"],
|
36 |
-
mono=True, res_type='
|
37 |
return audio_16k
|
38 |
|
39 |
|
|
|
33 |
|
34 |
def resample(audio):
|
35 |
audio_16k, sr = librosa.load(audio, sr = asr_model.cfg["sample_rate"],
|
36 |
+
mono=True, res_type='soxr_hq')
|
37 |
return audio_16k
|
38 |
|
39 |
|