kaldi-native-fbank C++ API
Kaldi-compatible feature extraction C++ API
Loading...
Searching...
No Matches
knf::MfccOptions Struct Reference

Options for computing MFCC features. More...

#include <feature-mfcc.h>

Collaboration diagram for knf::MfccOptions:

Public Member Functions

 MfccOptions ()
 Construct with the default options: 23 mel bins, 13 cepstra.
std::string ToString () const
 Return the options as a string.

Public Attributes

FrameExtractionOptions frame_opts
 Options for frame extraction; see FrameExtractionOptions.
MelBanksOptions mel_opts
 Options for the mel filter banks; see MelBanksOptions.
int32_t num_ceps = 13
 Number of cepstra in MFCC computation (including C0), e.g. 13.
bool use_energy = true
 Use energy (not C0) in MFCC computation.
float energy_floor = 0.0
 Floor on energy (absolute, not relative) in MFCC computation.
bool raw_energy = true
 If true, compute energy before preemphasis and windowing.
float cepstral_lifter = 22.0
 Constant that controls scaling of MFCCs (HTK liftering).
bool htk_compat = false
 If true, put energy or C0 last and use a factor of sqrt(2) on C0.

Detailed Description

Options for computing MFCC features.

This is kaldi's MfccOptions (src/feat/feature-mfcc.h).

See also
MfccComputer, FrameExtractionOptions, MelBanksOptions

Constructor & Destructor Documentation

◆ MfccOptions()

knf::MfccOptions::MfccOptions ( )
inline

Construct with the default options: 23 mel bins, 13 cepstra.

Member Function Documentation

◆ ToString()

std::string knf::MfccOptions::ToString ( ) const
inline

Return the options as a string.

Member Data Documentation

◆ cepstral_lifter

float knf::MfccOptions::cepstral_lifter = 22.0

Constant that controls scaling of MFCCs (HTK liftering).

If 0.0, no liftering is done.

◆ energy_floor

float knf::MfccOptions::energy_floor = 0.0

Floor on energy (absolute, not relative) in MFCC computation.

Only makes a difference if use_energy is true; only necessary if frame_opts.dither is 0.0. Suggested values: 0.1 or 1.0.

◆ frame_opts

FrameExtractionOptions knf::MfccOptions::frame_opts

Options for frame extraction; see FrameExtractionOptions.

◆ htk_compat

bool knf::MfccOptions::htk_compat = false

If true, put energy or C0 last and use a factor of sqrt(2) on C0.

Warning: not sufficient to get HTK compatible features (need to change other parameters).

◆ mel_opts

MelBanksOptions knf::MfccOptions::mel_opts

Options for the mel filter banks; see MelBanksOptions.

◆ num_ceps

int32_t knf::MfccOptions::num_ceps = 13

Number of cepstra in MFCC computation (including C0), e.g. 13.

◆ raw_energy

bool knf::MfccOptions::raw_energy = true

If true, compute energy before preemphasis and windowing.

◆ use_energy

bool knf::MfccOptions::use_energy = true

Use energy (not C0) in MFCC computation.


The documentation for this struct was generated from the following file:
  • /home/runner/work/kaldi-native-fbank/kaldi-native-fbank/kaldi-native-fbank/csrc/feature-mfcc.h