mirror of
https://github.com/k2-fsa/sherpa-onnx.git
synced 2026-11-10 21:11:03 +08:00
Use librosa-style fbank for streaming NeMo CTC models (#4092)
This commit is contained in:
1 parent
5f97192eb9
commit
49f4c887da
1 file changed
+8
@@ -261,6 +261,14 @@ class OnlineRecognizerCtcImpl : public OnlineRecognizerImpl {
|
||||
config_.feat_config.normalize_samples = false;
|
||||
}
|
||||
|
||||
if (!config_.model_config.nemo_ctc.model.empty()) {
|
||||
config_.feat_config.low_freq = 0;
|
||||
config_.feat_config.high_freq = 0;
|
||||
config_.feat_config.is_librosa = true;
|
||||
config_.feat_config.remove_dc_offset = false;
|
||||
config_.feat_config.window_type = "hann";
|
||||
}
|
||||
|
||||
if (!config_.model_config.t_one_ctc.model.empty()) {
|
||||
config_.feat_config.is_t_one = true;
|
||||
config_.feat_config.frame_length_ms = 300;
|
||||
|
||||
Reference in new issue
Block a user