20 #ifndef KALDI_FEAT_FEATURE_PLP_H_ 21 #define KALDI_FEAT_FEATURE_PLP_H_ 66 compress_factor(0.33333),
74 opts->
Register(
"lpc-order", &lpc_order,
75 "Order of LPC analysis in PLP computation");
76 opts->
Register(
"num-ceps", &num_ceps,
77 "Number of cepstra in PLP computation (including C0)");
78 opts->
Register(
"use-energy", &use_energy,
79 "Use energy (not C0) for zeroth PLP feature");
80 opts->
Register(
"energy-floor", &energy_floor,
81 "Floor on energy (absolute, not relative) in PLP computation. " 82 "Only makes a difference if --use-energy=true; only necessary if " 83 "--dither=0.0. Suggested values: 0.1 or 1.0");
84 opts->
Register(
"raw-energy", &raw_energy,
85 "If true, compute energy before preemphasis and windowing");
86 opts->
Register(
"compress-factor", &compress_factor,
87 "Compression factor in PLP computation");
88 opts->
Register(
"cepstral-lifter", &cepstral_lifter,
89 "Constant that controls scaling of PLPs");
90 opts->
Register(
"cepstral-scale", &cepstral_scale,
91 "Scaling constant in PLP computation");
92 opts->
Register(
"htk-compat", &htk_compat,
93 "If true, put energy or C0 last. Warning: not sufficient " 94 "to get HTK compatible features (need to change other " 108 return opts_.frame_opts;
136 void Compute(
BaseFloat signal_raw_log_energy,
176 #endif // KALDI_FEAT_FEATURE_PLP_H_ This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
BaseFloat compress_factor
void Register(OptionsItf *opts)
BaseFloat log_energy_floor_
Vector< BaseFloat > mel_energies_duplicated_
This is the new-style interface to the PLP computation.
OfflineFeatureTpl< PlpComputer > Plp
Vector< BaseFloat > lifter_coeffs_
Vector< BaseFloat > lpc_coeffs_
virtual void Register(const std::string &name, bool *ptr, const std::string &doc)=0
Vector< BaseFloat > autocorr_coeffs_
Matrix< BaseFloat > idft_bases_
const FrameExtractionOptions & GetFrameOptions() const
bool NeedRawLogEnergy() const
FrameExtractionOptions frame_opts
void Register(OptionsItf *opts)
std::map< BaseFloat, Vector< BaseFloat > *> equal_loudness_
A class representing a vector.
Vector< BaseFloat > raw_cepstrum_
PlpOptions contains basic options for computing PLP features.
This templated class is intended for offline feature extraction, i.e.
Provides a vector abstraction class.
SplitRadixRealFft< BaseFloat > * srfft_
std::map< BaseFloat, MelBanks * > mel_banks_