FbankOptions Struct Reference

FbankOptions contains basic options for computing filterbank features. More...

#include <feature-fbank.h>

Collaboration diagram for FbankOptions:

Public Member Functions

 FbankOptions ()
 
void Register (OptionsItf *opts)
 

Public Attributes

FrameExtractionOptions frame_opts
 
MelBanksOptions mel_opts
 
bool use_energy
 
BaseFloat energy_floor
 
bool raw_energy
 
bool htk_compat
 
bool use_log_fbank
 
bool use_power
 

Detailed Description

FbankOptions contains basic options for computing filterbank features.

It only includes things that can be done in a "stateless" way, i.e. it does not include energy max-normalization. It does not include delta computation.

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

Constructor & Destructor Documentation

◆ FbankOptions()

FbankOptions ( )
inline

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

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

Member Function Documentation

◆ Register()

void Register ( OptionsItf opts)
inline

Definition at line 62 of file feature-fbank.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("use-energy", &use_energy,
66  "Add an extra dimension with energy to the FBANK output.");
67  opts->Register("energy-floor", &energy_floor,
68  "Floor on energy (absolute, not relative) in FBANK computation. "
69  "Only makes a difference if --use-energy=true; only necessary if "
70  "--dither=0.0. Suggested values: 0.1 or 1.0");
71  opts->Register("raw-energy", &raw_energy,
72  "If true, compute energy before preemphasis and windowing");
73  opts->Register("htk-compat", &htk_compat, "If true, put energy last. "
74  "Warning: not sufficient to get HTK compatible features (need "
75  "to change other parameters).");
76  opts->Register("use-log-fbank", &use_log_fbank,
77  "If true, produce log-filterbank, else produce linear.");
78  opts->Register("use-power", &use_power,
79  "If true, use power, else use magnitude.");
80  }
void Register(OptionsItf *opts)
FrameExtractionOptions frame_opts
Definition: feature-fbank.h:42
BaseFloat energy_floor
Definition: feature-fbank.h:45
void Register(OptionsItf *opts)
MelBanksOptions mel_opts
Definition: feature-fbank.h:43

Member Data Documentation

◆ energy_floor

BaseFloat energy_floor

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

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

◆ frame_opts

◆ htk_compat

◆ mel_opts

◆ raw_energy

bool raw_energy

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

Referenced by FbankComputer::Compute().

◆ use_energy

◆ use_log_fbank

bool use_log_fbank

Definition at line 48 of file feature-fbank.h.

Referenced by FbankComputer::Compute().

◆ use_power

bool use_power

Definition at line 49 of file feature-fbank.h.

Referenced by FbankComputer::Compute().


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