theodotus commited on
Commit
ac5c028
1 Parent(s): 0808d5f

soxr resampling

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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='kaiser_fast')
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