SpectrogramOptions Struct Reference

SpectrogramOptions contains basic options for computing spectrogram features. More...

#include <feature-spectrogram.h>

Collaboration diagram for SpectrogramOptions:

Public Member Functions

 SpectrogramOptions ()
 
void Register (OptionsItf *opts)
 

Public Attributes

FrameExtractionOptions frame_opts
 
BaseFloat energy_floor
 
bool raw_energy
 
bool return_raw_fft
 

Detailed Description

SpectrogramOptions contains basic options for computing spectrogram features.

Definition at line 38 of file feature-spectrogram.h.

Constructor & Destructor Documentation

◆ SpectrogramOptions()

SpectrogramOptions ( )
inline

Definition at line 46 of file feature-spectrogram.h.

Member Function Documentation

◆ Register()

void Register ( OptionsItf opts)
inline

Definition at line 51 of file feature-spectrogram.h.

References OptionsItf::Register(), and FrameExtractionOptions::Register().

Referenced by main().

51  {
52  frame_opts.Register(opts);
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");
63  }
void Register(OptionsItf *opts)
FrameExtractionOptions frame_opts

Member Data Documentation

◆ energy_floor

◆ frame_opts

◆ raw_energy

bool raw_energy

Definition at line 41 of file feature-spectrogram.h.

Referenced by SpectrogramComputer::Compute().

◆ return_raw_fft

bool return_raw_fft

Definition at line 42 of file feature-spectrogram.h.

Referenced by SpectrogramComputer::Compute().


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