21 #ifndef KALDI_FEAT_FEATURE_FBANK_H_ 22 #define KALDI_FEAT_FEATURE_FBANK_H_ 65 opts->
Register(
"use-energy", &use_energy,
66 "Add an extra dimension with energy to the FBANK output.");
67 opts->
Register(
"energy-floor", &energy_floor,
68 "Floor on energy (absolute, not relative) in FBANK computation. " 69 "Only makes a difference if --use-energy=true; only necessary if " 70 "--dither=0.0. Suggested values: 0.1 or 1.0");
71 opts->
Register(
"raw-energy", &raw_energy,
72 "If true, compute energy before preemphasis and windowing");
73 opts->
Register(
"htk-compat", &htk_compat,
"If true, put energy last. " 74 "Warning: not sufficient to get HTK compatible features (need " 75 "to change other parameters).");
76 opts->
Register(
"use-log-fbank", &use_log_fbank,
77 "If true, produce log-filterbank, else produce linear.");
78 opts->
Register(
"use-power", &use_power,
79 "If true, use power, else use magnitude.");
94 return opts_.mel_opts.num_bins + (opts_.use_energy ? 1 : 0);
100 return opts_.frame_opts;
124 void Compute(
BaseFloat signal_raw_log_energy,
149 #endif // KALDI_FEAT_FEATURE_FBANK_H_ This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
void Register(OptionsItf *opts)
void Register(OptionsItf *opts)
virtual void Register(const std::string &name, bool *ptr, const std::string &doc)=0
FrameExtractionOptions frame_opts
bool NeedRawLogEnergy() const
Class for computing mel-filterbank features; see Computing MFCC features for more information...
OfflineFeatureTpl< FbankComputer > Fbank
SplitRadixRealFft< BaseFloat > * srfft_
BaseFloat log_energy_floor_
This templated class is intended for offline feature extraction, i.e.
Provides a vector abstraction class.
const FrameExtractionOptions & GetFrameOptions() const
FbankOptions contains basic options for computing filterbank features.
std::map< BaseFloat, MelBanks * > mel_banks_