|
kaldi-native-fbank C++ API
Kaldi-compatible feature extraction C++ API
|
Options for computing MFCC features. More...
#include <feature-mfcc.h>

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. | |
Options for computing MFCC features.
This is kaldi's MfccOptions (src/feat/feature-mfcc.h).
|
inline |
Construct with the default options: 23 mel bins, 13 cepstra.
|
inline |
Return the options as a string.
| float knf::MfccOptions::cepstral_lifter = 22.0 |
Constant that controls scaling of MFCCs (HTK liftering).
If 0.0, no liftering is done.
| 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.
| FrameExtractionOptions knf::MfccOptions::frame_opts |
Options for frame extraction; see FrameExtractionOptions.
| 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).
| MelBanksOptions knf::MfccOptions::mel_opts |
Options for the mel filter banks; see MelBanksOptions.
| int32_t knf::MfccOptions::num_ceps = 13 |
Number of cepstra in MFCC computation (including C0), e.g. 13.
| bool knf::MfccOptions::raw_energy = true |
If true, compute energy before preemphasis and windowing.
| bool knf::MfccOptions::use_energy = true |
Use energy (not C0) in MFCC computation.