csukuangfj commited on
Commit
68f51e1
1 Parent(s): c036d2a

small fixes

Browse files
Files changed (1) hide show
  1. model.py +5 -0
model.py CHANGED
@@ -200,6 +200,11 @@ def _get_librispeech_pre_trained_model(
200
  )
201
  tokens = _get_token_filename(repo_id=repo_id, subfolder="data/lang_bpe_500")
202
 
 
 
 
 
 
203
  config = sherpa.OfflineRecognizerConfig(
204
  nn_model=nn_model,
205
  tokens=tokens,
 
200
  )
201
  tokens = _get_token_filename(repo_id=repo_id, subfolder="data/lang_bpe_500")
202
 
203
+ feat_config = sherpa.FeatureConfig()
204
+ feat_config.fbank_opts.frame_opts.samp_freq = sample_rate
205
+ feat_config.fbank_opts.mel_opts.num_bins = 80
206
+ feat_config.fbank_opts.frame_opts.dither = 0
207
+
208
  config = sherpa.OfflineRecognizerConfig(
209
  nn_model=nn_model,
210
  tokens=tokens,