mag2mel
- ketos.audio.utils.misc.mag2mel(img, num_fft, rate, num_filters)[source]
Convert a Magnitude spectrogram to a Mel spectrogram.
- Args:
- img: numpy.array
Magnitude spectrogram image, linear axis
- num_fft: int
Number of points used for the FFT.
- rate: float
Sampling rate in Hz.
- num_filters: int
The number of filters in the filter bank.
- Returns:
- mel_spec: numpy.array
Mel spectrogram image