librosax.istft¶
- istft(stft_matrix: Array, hop_length: int = None, win_length: int = None, n_fft: int = None, window: str = 'hann', center: bool = True, length: int = None)[source]¶
Compute the Inverse Short-Time Fourier Transform (ISTFT).
This function reconstructs a waveform from an STFT matrix using JAX’s
scipy.signal.istftimplementation.- Parameters:
stft_matrix – The STFT matrix from which to compute the inverse.
hop_length – Number of samples between successive frames. Default is
win_length // 4.win_length – Window size. Default is
n_fft.n_fft – FFT size. Default is
(stft_matrix.shape[-2] - 1) * 2.window – Window function type. Default is
"hann".center – If
True, assumes the waveform was padded so that frames were centered. Default isTrue.length – Target length for the reconstructed signal. If None, the entire signal is returned.
- Returns:
Reconstructed time-domain signal.
- Return type:
jnp.ndarray
- Raises:
AssertionError – If center is
Falsebecause the function is only tested forcenter=True.