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

Compute the short-time Fourier transform of a waveform. More...

#include <stft.h>

Public Member Functions

 Stft (const StftConfig &config)
 Construct with the given config.
 ~Stft ()
 Destructor.
StftResult Compute (const float *data, int32_t n) const
 Compute the STFT of a waveform.

Detailed Description

Compute the short-time Fourier transform of a waveform.

Used by:
OnlineNemoFbank computes its spectra with Stft; IStft inverts them.
See also
StftConfig, StftResult, IStft, Rfft

Constructor & Destructor Documentation

◆ Stft()

knf::Stft::Stft ( const StftConfig & config)
explicit

Construct with the given config.

◆ ~Stft()

knf::Stft::~Stft ( )

Destructor.

Member Function Documentation

◆ Compute()

StftResult knf::Stft::Compute ( const float * data,
int32_t n ) const

Compute the STFT of a waveform.

Parameters
dataPointer to a 1-D array of size n.
nNumber of samples in data.
Returns
The complex spectra of all frames; see StftResult.

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