21 #ifndef KALDI_ONLINE2_ONLINE_FEATURE_PIPELINE_H_ 22 #define KALDI_ONLINE2_ONLINE_FEATURE_PIPELINE_H_ 66 feature_type(
"mfcc"), add_pitch(false), add_deltas(false),
67 splice_feats(false) { }
70 opts->
Register(
"feature-type", &feature_type,
71 "Base feature type [mfcc, plp, fbank]");
72 opts->
Register(
"mfcc-config", &mfcc_config,
"Configuration file for " 73 "MFCC features (e.g. conf/mfcc.conf)");
74 opts->
Register(
"plp-config", &plp_config,
"Configuration file for " 75 "PLP features (e.g. conf/plp.conf)");
76 opts->
Register(
"fbank-config", &fbank_config,
"Configuration file for " 77 "filterbank features (e.g. conf/fbank.conf)");
78 opts->
Register(
"add-pitch", &add_pitch,
"Append pitch features to raw " 79 "MFCC/PLP features.");
80 opts->
Register(
"pitch-config", &pitch_config,
"Configuration file for " 81 "pitch features (e.g. conf/pitch.conf)");
82 opts->
Register(
"pitch-process-config", &pitch_process_config,
83 "Configuration file for post-processing pitch features " 84 "(e.g. conf/pitch_process.conf)");
85 opts->
Register(
"cmvn-config", &cmvn_config,
"Configuration class " 86 "file for online CMVN features (e.g. conf/online_cmvn.conf)");
87 opts->
Register(
"global-cmvn-stats", &global_cmvn_stats_rxfilename,
88 "(Extended) filename for global CMVN stats, e.g. obtained " 89 "from 'matrix-sum scp:data/train/cmvn.scp -'");
90 opts->
Register(
"add-deltas", &add_deltas,
91 "Append delta features.");
92 opts->
Register(
"delta-config", &delta_config,
"Configuration file for " 93 "delta feature computation (if not supplied, will not apply " 94 "delta features; supply empty config to use defaults.)");
95 opts->
Register(
"splice-feats", &splice_feats,
"Splice features with left and " 97 opts->
Register(
"splice-config", &splice_config,
"Configuration file " 98 "for frame splicing, if done (e.g. prior to LDA)");
99 opts->
Register(
"lda-matrix", &lda_rxfilename,
"Filename of LDA matrix (if " 100 "using LDA), e.g. exp/foo/final.mat");
162 virtual int32 Dim()
const;
163 virtual bool IsLastFrame(
int32 frame)
const;
164 virtual int32 NumFramesReady()
const;
181 void AcceptWaveform(
BaseFloat sampling_rate,
185 return config_.FrameShiftInSeconds();
192 void InputFinished();
262 #endif // KALDI_ONLINE2_ONLINE_FEATURE_PIPELINE_H_ OnlinePitchFeature * pitch_
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
Matrix< BaseFloat > global_cmvn_stats_
OnlineFeatureInterface * feature_
Base class which provides matrix operations not involving resizing or allocation. ...
MfccOptions contains basic options for computing MFCC features.
bool HaveFmllrTransform()
This class does an online version of the cepstral mean and [optionally] variance, but note that this ...
This online-feature class implements post processing of pitch features.
OnlineProcessPitch * pitch_feature_
OnlineBaseFeature * base_feature_
DeltaFeaturesOptions delta_opts
This configuration class is to set up OnlineFeaturePipelineConfig, which in turn is the configuration...
std::string pitch_process_config
virtual void Register(const std::string &name, bool *ptr, const std::string &doc)=0
OnlineFeaturePipeline is a class that's responsible for putting together the various stages of the fe...
OnlineFeatureInterface * fmllr_
std::string lda_rxfilename
std::string global_cmvn_stats_rxfilename
OnlineFeaturePipelineConfig()
Matrix< BaseFloat > lda_mat_
OnlineSpliceOptions splice_opts
BaseFloat FrameShiftInSeconds() const
OnlineFeatureInterface * lda_
Struct OnlineCmvnState stores the state of CMVN adaptation between utterances (but not the state of t...
void Register(OptionsItf *opts)
ProcessPitchOptions pitch_process_opts
std::string lda_rxfilename
PitchExtractionOptions pitch_opts
std::string splice_config
Add a virtual class for "source" features such as MFCC or PLP or pitch features.
OnlineFeatureInterface * splice_or_delta_
This configuration class is responsible for storing the configuration options for OnlineFeaturePipeli...
std::string global_cmvn_stats_rxfilename
OnlineFeatureInterface is an interface for online feature processing (it is also usable in the offlin...
OnlineFeaturePipelineConfig config_
OnlineCmvnOptions cmvn_opts
PlpOptions contains basic options for computing PLP features.
Provides a vector abstraction class.
FbankOptions contains basic options for computing filterbank features.
OnlineFeaturePipelineCommandLineConfig()