tf.signal.stft

View source on GitHub

Computes the Short-time Fourier Transform of signals.

tf.signal.stft(
    signals, frame_length, frame_step, fft_length=None,
    window_fn=tf.signal.hann_window, pad_end=False, name=None
)

Implemented with TPU/GPU-compatible ops and supports gradients.

Args:

Returns:

A [..., frames, fft_unique_bins] Tensor of complex64/complex128 STFT values where fft_unique_bins is fft_length // 2 + 1 (the unique components of the FFT).

Raises: