espnet2.utils.griffin_lim.logmel2linear
Less than 1 minute
espnet2.utils.griffin_lim.logmel2linear
espnet2.utils.griffin_lim.logmel2linear(lmspc: ndarray, fs: int, n_fft: int, n_mels: int, fmin: int | None = None, fmax: int | None = None) → ndarray
Convert log Mel filterbank to linear spectrogram.
- Parameters:
- lmspc – Log Mel filterbank (T, n_mels).
- fs – Sampling frequency.
- n_fft – The number of FFT points.
- n_mels – The number of mel basis.
- f_min – Minimum frequency to analyze.
- f_max – Maximum frequency to analyze.
- Returns: Linear spectrogram (T, n_fft // 2 + 1).