21 #ifndef KALDI_FEAT_FEATURE_MFCC_H_ 22 #define KALDI_FEAT_FEATURE_MFCC_H_ 59 cepstral_lifter(22.0),
65 opts->
Register(
"num-ceps", &num_ceps,
66 "Number of cepstra in MFCC computation (including C0)");
67 opts->
Register(
"use-energy", &use_energy,
68 "Use energy (not C0) in MFCC computation");
69 opts->
Register(
"energy-floor", &energy_floor,
70 "Floor on energy (absolute, not relative) in MFCC computation. " 71 "Only makes a difference if --use-energy=true; only necessary if " 72 "--dither=0.0. Suggested values: 0.1 or 1.0");
73 opts->
Register(
"raw-energy", &raw_energy,
74 "If true, compute energy before preemphasis and windowing");
75 opts->
Register(
"cepstral-lifter", &cepstral_lifter,
76 "Constant that controls scaling of MFCCs");
77 opts->
Register(
"htk-compat", &htk_compat,
78 "If true, put energy or C0 last and use a factor of sqrt(2) on " 79 "C0. Warning: not sufficient to get HTK compatible features " 80 "(need to change other parameters).");
94 return opts_.frame_opts;
122 void Compute(
BaseFloat signal_raw_log_energy,
154 #endif // KALDI_FEAT_FEATURE_MFCC_H_ This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
OfflineFeatureTpl< MfccComputer > Mfcc
void Register(OptionsItf *opts)
MfccOptions contains basic options for computing MFCC features.
virtual void Register(const std::string &name, bool *ptr, const std::string &doc)=0
Vector< BaseFloat > mel_energies_
BaseFloat cepstral_lifter
BaseFloat log_energy_floor_
std::map< BaseFloat, MelBanks * > mel_banks_
FrameExtractionOptions frame_opts
Matrix< BaseFloat > dct_matrix_
const FrameExtractionOptions & GetFrameOptions() const
A class representing a vector.
Vector< BaseFloat > lifter_coeffs_
bool NeedRawLogEnergy() const
void Register(OptionsItf *opts)
This templated class is intended for offline feature extraction, i.e.
Provides a vector abstraction class.
SplitRadixRealFft< BaseFloat > * srfft_