File tree 3 files changed +13
-1
lines changed
3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.13 FATAL_ERROR)
2
2
project (sherpa-ncnn)
3
3
4
- set (SHERPA_NCNN_VERSION "2.1.4 " )
4
+ set (SHERPA_NCNN_VERSION "2.1.5 " )
5
5
6
6
# Disable warning about
7
7
#
Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ class FeatureExtractor::Impl {
48
48
49
49
opts_.mel_opts .num_bins = config.feature_dim ;
50
50
51
+ // Please see
52
+ // https://github.com/lhotse-speech/lhotse/blob/master/lhotse/features/fbank.py#L27
53
+ // and
54
+ // https://github.com/k2-fsa/sherpa-onnx/issues/514
55
+ opts_.mel_opts .high_freq = -400 ;
56
+
51
57
fbank_ = std::make_unique<knf::OnlineFbank>(opts_);
52
58
}
53
59
Original file line number Diff line number Diff line change @@ -560,6 +560,12 @@ int QuantNet::quantize_KL(const std::vector<std::string> &wave_filenames) {
560
560
fbank_opts.frame_opts .samp_freq = expected_sampling_rate;
561
561
fbank_opts.mel_opts .num_bins = 80 ;
562
562
563
+ // Please see
564
+ // https://github.com/lhotse-speech/lhotse/blob/master/lhotse/features/fbank.py#L27
565
+ // and
566
+ // https://github.com/k2-fsa/sherpa-onnx/issues/514
567
+ fbank_opts.mel_opts .high_freq = -400 ;
568
+
563
569
int32_t segment = model->Segment ();
564
570
int32_t offset = model->Offset ();
565
571
You can’t perform that action at this time.
0 commit comments