|
kaldi-native-fbank C++ API
Kaldi-compatible feature extraction C++ API
|
Class for computing Whisper mel features. More...
#include <whisper-feature.h>
Public Types | |
| using | Options = WhisperFeatureOptions |
| Option type accepted by this computer. | |
Public Member Functions | |
| WhisperFeatureComputer (const WhisperFeatureOptions &opts=WhisperFeatureOptions()) | |
| Construct from the given options. | |
| int32_t | Dim () const |
| Return the number of mel bins. | |
| const FrameExtractionOptions & | GetFrameOptions () const |
| Return the (reset) frame-extraction options. | |
| void | Compute (float, float, std::vector< float > *signal_frame, float *feature) |
| Compute one frame of features from one frame of windowed signal; see FbankComputer::Compute() for the argument meanings. | |
| bool | NeedRawLogEnergy () const |
| Always false: raw log energy is not used by this feature type. | |
Class for computing Whisper mel features.
For each frame it computes the power spectrum and projects it onto librosa-style mel filter banks, producing mel power energies (not log).
Option type accepted by this computer.
|
explicit |
Construct from the given options.
note: opts.frame_opts is ignored and we reset it inside.
| void knf::WhisperFeatureComputer::Compute | ( | float | , |
| float | , | ||
| std::vector< float > * | signal_frame, | ||
| float * | feature ) |
Compute one frame of features from one frame of windowed signal; see FbankComputer::Compute() for the argument meanings.
|
inline |
Return the number of mel bins.
|
inline |
Return the (reset) frame-extraction options.
|
inline |
Always false: raw log energy is not used by this feature type.