theodotus commited on
Commit
68b908e
1 Parent(s): ff8ca2b

soxr resampling

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ mid_delay = ceil((chunk_len + (buffer_len - chunk_len) / 2) / model_stride_in_se
31
 
32
  def resample(audio):
33
  audio_16k, sr = librosa.load(audio, sr = asr_model.cfg["sample_rate"],
34
- mono=True, res_type='kaiser_fast')
35
  return audio_16k
36
 
37
 
 
31
 
32
  def resample(audio):
33
  audio_16k, sr = librosa.load(audio, sr = asr_model.cfg["sample_rate"],
34
+ mono=True, res_type='soxr_hq')
35
  return audio_16k
36
 
37