PlpOptions Struct Reference

PlpOptions contains basic options for computing PLP features. More...

#include <feature-plp.h>

Collaboration diagram for PlpOptions:

Public Member Functions

 PlpOptions ()
 
void Register (OptionsItf *opts)
 

Public Attributes

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

Detailed Description

PlpOptions contains basic options for computing PLP 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 42 of file feature-plp.h.

Constructor & Destructor Documentation

◆ PlpOptions()

PlpOptions ( )
inline

Definition at line 57 of file feature-plp.h.

57  : mel_opts(23),
58  // default number of mel-banks for the PLP computation; this
59  // seems to be common for 16kHz-sampled data. For 8kHz-sampled
60  // data, 15 may be better.
61  lpc_order(12),
62  num_ceps(13),
63  use_energy(true),
64  energy_floor(0.0),
65  raw_energy(true),
66  compress_factor(0.33333),
67  cepstral_lifter(22),
68  cepstral_scale(1.0),
69  htk_compat(false) {}
BaseFloat compress_factor
Definition: feature-plp.h:50
MelBanksOptions mel_opts
Definition: feature-plp.h:44
BaseFloat energy_floor
Definition: feature-plp.h:48
BaseFloat cepstral_scale
Definition: feature-plp.h:52

Member Function Documentation

◆ Register()

void Register ( OptionsItf opts)
inline

Definition at line 71 of file feature-plp.h.

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

Referenced by main().

71  {
72  frame_opts.Register(opts);
73  mel_opts.Register(opts);
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 "
95  "parameters).");
96  }
BaseFloat compress_factor
Definition: feature-plp.h:50
void Register(OptionsItf *opts)
MelBanksOptions mel_opts
Definition: feature-plp.h:44
FrameExtractionOptions frame_opts
Definition: feature-plp.h:43
BaseFloat energy_floor
Definition: feature-plp.h:48
BaseFloat cepstral_scale
Definition: feature-plp.h:52
void Register(OptionsItf *opts)

Member Data Documentation

◆ cepstral_lifter

int32 cepstral_lifter

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

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

◆ cepstral_scale

BaseFloat cepstral_scale

Definition at line 52 of file feature-plp.h.

Referenced by PlpComputer::Compute(), and UnitTestHTKCompare1().

◆ compress_factor

BaseFloat compress_factor

Definition at line 50 of file feature-plp.h.

Referenced by PlpComputer::Compute().

◆ energy_floor

BaseFloat energy_floor

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

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

◆ frame_opts

◆ htk_compat

bool htk_compat

◆ lpc_order

int32 lpc_order

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

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

◆ mel_opts

◆ num_ceps

int32 num_ceps

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

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

◆ raw_energy

bool raw_energy

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

Referenced by PlpComputer::Compute().

◆ use_energy

bool use_energy

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