MfccOptions Struct Reference

MfccOptions contains basic options for computing MFCC features. More...

#include <feature-mfcc.h>

Collaboration diagram for MfccOptions:

Public Member Functions

 MfccOptions ()
 
void Register (OptionsItf *opts)
 

Public Attributes

FrameExtractionOptions frame_opts
 
MelBanksOptions mel_opts
 
int32 num_ceps
 
bool use_energy
 
BaseFloat energy_floor
 
bool raw_energy
 
BaseFloat cepstral_lifter
 
bool htk_compat
 

Detailed Description

MfccOptions contains basic options for computing MFCC features.

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

Constructor & Destructor Documentation

◆ MfccOptions()

MfccOptions ( )
inline

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

51  : mel_opts(23),
52  // defaults the #mel-banks to 23 for the MFCC computations.
53  // this seems to be common for 16khz-sampled data,
54  // but for 8khz-sampled data, 15 may be better.
55  num_ceps(13),
56  use_energy(true),
57  energy_floor(0.0),
58  raw_energy(true),
59  cepstral_lifter(22.0),
60  htk_compat(false) {}
BaseFloat energy_floor
Definition: feature-mfcc.h:43
BaseFloat cepstral_lifter
Definition: feature-mfcc.h:46
MelBanksOptions mel_opts
Definition: feature-mfcc.h:40

Member Function Documentation

◆ Register()

void Register ( OptionsItf opts)
inline

Definition at line 62 of file feature-mfcc.h.

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

Referenced by main().

62  {
63  frame_opts.Register(opts);
64  mel_opts.Register(opts);
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).");
81  }
void Register(OptionsItf *opts)
BaseFloat energy_floor
Definition: feature-mfcc.h:43
BaseFloat cepstral_lifter
Definition: feature-mfcc.h:46
MelBanksOptions mel_opts
Definition: feature-mfcc.h:40
FrameExtractionOptions frame_opts
Definition: feature-mfcc.h:39
void Register(OptionsItf *opts)

Member Data Documentation

◆ cepstral_lifter

BaseFloat cepstral_lifter

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

Referenced by MfccComputer::Compute(), and MfccComputer::MfccComputer().

◆ energy_floor

BaseFloat energy_floor

Definition at line 43 of file feature-mfcc.h.

Referenced by MfccComputer::Compute(), and MfccComputer::MfccComputer().

◆ frame_opts

◆ htk_compat

◆ mel_opts

◆ num_ceps

int32 num_ceps

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

Referenced by MfccComputer::Compute(), main(), and MfccComputer::MfccComputer().

◆ raw_energy

bool raw_energy

Definition at line 45 of file feature-mfcc.h.

Referenced by MfccComputer::Compute().

◆ use_energy


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