35#ifndef KALDI_NATIVE_FBANK_CSRC_WHISPER_FEATURE_H_
36#define KALDI_NATIVE_FBANK_CSRC_WHISPER_FEATURE_H_
88 int32_t
Dim()
const {
return opts_.dim; }
92 return opts_.frame_opts;
98 std::vector<float> *signal_frame,
float *feature);
107 std::unique_ptr<MelBanks> mel_banks_;
int32_t Dim() const
Return the number of mel bins.
Definition whisper-feature.h:88
bool NeedRawLogEnergy() const
Always false: raw log energy is not used by this feature type.
Definition whisper-feature.h:101
WhisperFeatureOptions Options
Option type accepted by this computer.
Definition whisper-feature.h:104
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...
const FrameExtractionOptions & GetFrameOptions() const
Return the (reset) frame-extraction options.
Definition whisper-feature.h:91
WhisperFeatureComputer(const WhisperFeatureOptions &opts=WhisperFeatureOptions())
Construct from the given options.
Waveform windowing and frame extraction.
Copyright 2009-2011 Phonexia s.r.o.; Microsoft Corporation 2016 Johns Hopkins University (author: Dan...
This file is part of kaldi-native-fbank.
Definition feature-cmvn.h:42
Options for computing Whisper mel features.
Definition whisper-feature.h:51
int32_t dim
Number of mel bins: 80 for most Whisper models, 128 for large v3.
Definition whisper-feature.h:63
FrameExtractionOptions frame_opts
Frame-extraction options.
Definition whisper-feature.h:60
std::string ToString() const
Return the options as a string.
WhisperFeatureOptions(const FrameExtractionOptions &frame_opts={}, int32_t dim=80)
Construct with the given frame options and number of mel bins.
Definition whisper-feature.h:53