espnet2.utils.griffin_lim.Spectrogram2Waveform
Less than 1 minute
espnet2.utils.griffin_lim.Spectrogram2Waveform
class espnet2.utils.griffin_lim.Spectrogram2Waveform(n_fft: int, n_shift: int, fs: int | None = None, n_mels: int | None = None, win_length: int | None = None, window: str | None = 'hann', fmin: int | None = None, fmax: int | None = None, griffin_lim_iters: int | None = 8)
Bases: object
Spectrogram to waveform conversion module.
Initialize module.
- Parameters:
- fs – Sampling frequency.
- n_fft – The number of FFT points.
- n_shift – Shift size in points.
- n_mels – The number of mel basis.
- win_length – Window length in points.
- window – Window function type.
- f_min – Minimum frequency to analyze.
- f_max – Maximum frequency to analyze.
- griffin_lim_iters – The number of iterations.