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

"Computer" that frames raw audio samples without any processing. More...

#include <feature-raw-audio-samples.h>

Public Types

using Options = RawAudioSamplesOptions
 Option type accepted by this computer.

Public Member Functions

 RawAudioSamplesComputer (const RawAudioSamplesOptions &opts)
 Construct from the given options.
int32_t Dim () const
 Return the frame size in samples.
bool NeedRawLogEnergy () const
 Always false: raw log energy is not used by this feature type.
const FrameExtractionOptions & GetFrameOptions () const
 Return the frame-extraction options.
const RawAudioSamplesOptions & GetOptions () const
 Return the options this computer was constructed with.
void Compute (float unused_signal_raw_log_energy, float unused_vtln_warp, std::vector< float > *signal_frame, float *feature)
 Copy one frame of raw samples to feature; the two energy/vtln arguments are unused.

Detailed Description

"Computer" that frames raw audio samples without any processing.

It has the same interface as FbankComputer/MfccComputer so it can be used with OnlineGenericBaseFeature (see online-feature.h).

Used by:
OnlineRawAudioSamples = OnlineGenericBaseFeature<RawAudioSamplesComputer> (see online-feature.h).
See also
RawAudioSamplesOptions, OnlineRawAudioSamples

Member Typedef Documentation

◆ Options

Option type accepted by this computer.

Constructor & Destructor Documentation

◆ RawAudioSamplesComputer()

knf::RawAudioSamplesComputer::RawAudioSamplesComputer ( const RawAudioSamplesOptions & opts)
inlineexplicit

Construct from the given options.

Member Function Documentation

◆ Compute()

void knf::RawAudioSamplesComputer::Compute ( float unused_signal_raw_log_energy,
float unused_vtln_warp,
std::vector< float > * signal_frame,
float * feature )

Copy one frame of raw samples to feature; the two energy/vtln arguments are unused.

◆ Dim()

int32_t knf::RawAudioSamplesComputer::Dim ( ) const
inline

Return the frame size in samples.

◆ GetFrameOptions()

const FrameExtractionOptions & knf::RawAudioSamplesComputer::GetFrameOptions ( ) const
inline

Return the frame-extraction options.

◆ GetOptions()

const RawAudioSamplesOptions & knf::RawAudioSamplesComputer::GetOptions ( ) const
inline

Return the options this computer was constructed with.

◆ NeedRawLogEnergy()

bool knf::RawAudioSamplesComputer::NeedRawLogEnergy ( ) const
inline

Always false: raw log energy is not used by this feature type.


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