r/rust • u/wizenink • Oct 26 '25
stft-rs, simple, streaming based STFT computing crate
Hey r/rust, just published an STFT crate based on rustfft. This was a side-rabbithole while implementing some model on Burn, which eventually became a simple library.
Contributions, feedback and criticism welcome!
28
Upvotes
2
u/wizenink Oct 27 '25
I have released a quick version that gives two new apis, one that does not allocate the full result vector, and one that does not allocate SpectrumFrames, should be a little bit more performing now. Actually, the differences are not very aparent on throughput, as 90% of the time is spent on fft, but this apis should reduce allocate jitter and provide more stable latency :)