21 #ifndef KALDI_FEAT_FEATURE_SPECTROGRAM_H_    22 #define KALDI_FEAT_FEATURE_SPECTROGRAM_H_    49     return_raw_fft(false) {}
    53     opts->
Register(
"energy-floor", &energy_floor,
    54                    "Floor on energy (absolute, not relative) in Spectrogram "    55                    "computation.  Caution: this floor is applied to the zeroth "    56                    "component, representing the total signal energy.  The "    57                    "floor on the individual spectrogram elements is fixed at "    58                    "std::numeric_limits<float>::epsilon().");
    59     opts->
Register(
"raw-energy", &raw_energy,
    60                    "If true, compute energy before preemphasis and windowing");
    61     opts->
Register(
"return-raw-fft", &return_raw_fft,
    62                    "If true, return raw FFT complex numbers instead of log magnitudes");
    74     return opts_.frame_opts;
    78     if (opts_.return_raw_fft) {
    79       return opts_.frame_opts.PaddedWindowSize();
    81       return opts_.frame_opts.PaddedWindowSize() / 2 + 1;
   106   void Compute(
BaseFloat signal_raw_log_energy,
   129 #endif  // KALDI_FEAT_FEATURE_SPECTROGRAM_H_ This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
 
bool NeedRawLogEnergy() const
 
Class for computing spectrogram features. 
 
void Register(OptionsItf *opts)
 
virtual void Register(const std::string &name, bool *ptr, const std::string &doc)=0
 
SpectrogramOptions Options
 
SplitRadixRealFft< BaseFloat > * srfft_
 
This templated class is intended for offline feature extraction, i.e. 
 
SpectrogramOptions contains basic options for computing spectrogram features. 
 
Provides a vector abstraction class. 
 
const FrameExtractionOptions & GetFrameOptions() const
 
FrameExtractionOptions frame_opts
 
OfflineFeatureTpl< SpectrogramComputer > Spectrogram
 
BaseFloat log_energy_floor_