Use librosa-style fbank for streaming NeMo CTC models (#4092)

This commit is contained in:
Hassan Kazi authored and GitHub committed 2026-10-26 16:48:34 +08:00
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;