MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / STFT

Class STFT

include/engine/framework/audio/dsp.h:37–54  ·  view source on GitHub ↗

Speech-focused STFT surface used by voice models in this repo. It assumes real float input and returns one-sided complex or magnitude output.

Source from the content-addressed store, hash-verified

35// Speech-focused STFT surface used by voice models in this repo.
36// It assumes real float input and returns one-sided complex or magnitude output.
37class STFT {
38public:
39 AudioTensor compute_magnitude(
40 const std::vector<float> & waveform,
41 const std::vector<float> & window,
42 int64_t batch,
43 int64_t samples,
44 const STFTConfig & config,
45 size_t threads = 0) const;
46
47 AudioTensor compute_complex(
48 const std::vector<float> & waveform,
49 const std::vector<float> & window,
50 int64_t batch,
51 int64_t samples,
52 const STFTConfig & config,
53 size_t threads = 0) const;
54};
55
56class ISTFT {
57public:

Callers 15

source_stft_bctFunction · 0.85
compute_titanet_featuresFunction · 0.85
computeMethod · 0.85
denoise_mono_16k_wholeFunction · 0.85
compute_whisper_log_melFunction · 0.85
compute_rmvpe_log_melFunction · 0.85
extractMethod · 0.85

Calls

no outgoing calls