OnlineNnet2FeaturePipelineConfig Struct Reference

This configuration class is to set up OnlineNnet2FeaturePipelineInfo, which in turn is the configuration class for OnlineNnet2FeaturePipeline. More...

#include <online-nnet2-feature-pipeline.h>

Collaboration diagram for OnlineNnet2FeaturePipelineConfig:

Public Member Functions

 OnlineNnet2FeaturePipelineConfig ()
 
void Register (OptionsItf *opts)
 

Public Attributes

std::string feature_type
 
std::string mfcc_config
 
std::string plp_config
 
std::string fbank_config
 
std::string cmvn_config
 
std::string global_cmvn_stats_rxfilename
 
bool add_pitch
 
std::string online_pitch_config
 
std::string ivector_extraction_config
 
OnlineSilenceWeightingConfig silence_weighting_config
 

Detailed Description

This configuration class is to set up OnlineNnet2FeaturePipelineInfo, which in turn is the configuration class for OnlineNnet2FeaturePipeline.

Instead of taking the options for the parts of the feature pipeline directly, it reads in the names of configuration classes.

Definition at line 69 of file online-nnet2-feature-pipeline.h.

Constructor & Destructor Documentation

◆ OnlineNnet2FeaturePipelineConfig()

Member Function Documentation

◆ Register()

void Register ( OptionsItf opts)
inline

Definition at line 101 of file online-nnet2-feature-pipeline.h.

References OptionsItf::Register(), and OnlineSilenceWeightingConfig::RegisterWithPrefix().

Referenced by main().

101  {
102  opts->Register("feature-type", &feature_type,
103  "Base feature type [mfcc, plp, fbank]");
104  opts->Register("mfcc-config", &mfcc_config, "Configuration file for "
105  "MFCC features (e.g. conf/mfcc.conf)");
106  opts->Register("plp-config", &plp_config, "Configuration file for "
107  "PLP features (e.g. conf/plp.conf)");
108  opts->Register("fbank-config", &fbank_config, "Configuration file for "
109  "filterbank features (e.g. conf/fbank.conf)");
110  opts->Register("cmvn-config", &cmvn_config, "Configuration file for "
111  "online cmvn features (e.g. conf/online_cmvn.conf). "
112  "Controls features on nnet3 input (not ivector features). "
113  "If not set, the OnlineCmvn is disabled.");
114  opts->Register("global-cmvn-stats", &global_cmvn_stats_rxfilename,
115  "filename with global stats for OnlineCmvn for features "
116  "on nnet3 input (not ivector features)");
117  opts->Register("add-pitch", &add_pitch, "Append pitch features to raw "
118  "MFCC/PLP/filterbank features [but not for iVector extraction]");
119  opts->Register("online-pitch-config", &online_pitch_config, "Configuration "
120  "file for online pitch features, if --add-pitch=true (e.g. "
121  "conf/online_pitch.conf)");
122  opts->Register("ivector-extraction-config", &ivector_extraction_config,
123  "Configuration file for online iVector extraction, "
124  "see class OnlineIvectorExtractionConfig in the code");
125  silence_weighting_config.RegisterWithPrefix("ivector-silence-weighting", opts);
126  }
void RegisterWithPrefix(std::string prefix, OptionsItf *opts)

Member Data Documentation

◆ add_pitch

◆ cmvn_config

std::string cmvn_config

◆ fbank_config

std::string fbank_config

◆ feature_type

std::string feature_type

◆ global_cmvn_stats_rxfilename

std::string global_cmvn_stats_rxfilename

◆ ivector_extraction_config

std::string ivector_extraction_config

◆ mfcc_config

std::string mfcc_config

◆ online_pitch_config

std::string online_pitch_config

◆ plp_config

std::string plp_config

◆ silence_weighting_config

OnlineSilenceWeightingConfig silence_weighting_config

Definition at line 95 of file online-nnet2-feature-pipeline.h.


The documentation for this struct was generated from the following file: