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

Reconstruct a waveform from Stft results. More...

#include <istft.h>

Public Member Functions

 IStft (const StftConfig &config)
 Construct with the same config that was used for the forward Stft.
 ~IStft ()
 Destructor.
std::vector< float > Compute (const StftResult &stft_result) const
 Reconstruct the waveform.

Detailed Description

Reconstruct a waveform from Stft results.

Used by:
Inverse pipelines that consume Stft::Compute() output (e.g. speech enhancement / vocoder front ends).
See also
Stft, StftConfig, StftResult

Constructor & Destructor Documentation

◆ IStft()

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

Construct with the same config that was used for the forward Stft.

◆ ~IStft()

knf::IStft::~IStft ( )

Destructor.

Member Function Documentation

◆ Compute()

std::vector< float > knf::IStft::Compute ( const StftResult & stft_result) const

Reconstruct the waveform.

Parameters
stft_resultOutput of Stft::Compute(). Its num_frames and the config determine the length of the result.
Returns
The reconstructed samples; if config.center is true, the n_fft/2 padding samples at both ends are removed.

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