espnet2.utils.griffin_lim.griffin_lim
Less than 1 minute
espnet2.utils.griffin_lim.griffin_lim
espnet2.utils.griffin_lim.griffin_lim(spc: ndarray, n_fft: int, n_shift: int, win_length: int | None = None, window: str | None = 'hann', n_iter: int | None = 32) → ndarray
Convert linear spectrogram into waveform using Griffin-Lim.
- Parameters:
- spc – Linear spectrogram (T, n_fft // 2 + 1).
- n_fft – The number of FFT points.
- n_shift – Shift size in points.
- win_length – Window length in points.
- window – Window function type.
- n_iter – The number of iterations.
- Returns: Reconstructed waveform (N,).