stft

Function stft 

pub fn stft<B>(
    signal: Tensor<B, 2>,
    window: Option<Tensor<B, 1>>,
    options: StftOptions,
) -> Tensor<B, 4>
where B: Backend,
Expand description

Computes the Short-Time Fourier Transform (STFT).

Splits the signal into overlapping windowed frames and computes the FFT on each.

ยงReturns

A tensor of shape [batch, n_frames, n_freqs, 2] where the last dimension holds [real, imaginary].