Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit adaf35a

Browse files
committed
Pitch features are also normalized.
1 parent 157049d commit adaf35a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/feature_pipeline.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@ namespace alex_asr {
3838
KALDI_ERR << "You have to specify a valid feature_type.";
3939
}
4040

41-
if(config.use_cmvn) {
42-
KALDI_VLOG(3) << "Feature CMVN";
43-
cmvn_state_ = new OnlineCmvnState(*config.cmvn_mat);
44-
prev_feature = cmvn_ = new OnlineCmvn(config.cmvn_opts, *cmvn_state_, prev_feature);
45-
}
46-
4741
if(config.use_pitch) {
4842
pitch_ = new OnlinePitchFeature(config.pitch_opts);
4943
pitch_feature_ = new OnlineProcessPitch(config.pitch_process_opts, pitch_);
5044
prev_feature = pitch_append_ = new OnlineAppendFeature(prev_feature, pitch_feature_);
5145
}
5246

47+
if(config.use_cmvn) {
48+
KALDI_VLOG(3) << "Feature CMVN";
49+
cmvn_state_ = new OnlineCmvnState(*config.cmvn_mat);
50+
prev_feature = cmvn_ = new OnlineCmvn(config.cmvn_opts, *cmvn_state_, prev_feature);
51+
}
52+
5353
if(config.model_type != DecoderConfig::NNET3) {
5454
// TODO
5555
KALDI_VLOG(3) << "Feature SPLICE " << config.splice_opts.left_context << " " <<

0 commit comments

Comments
 (0)