carat.util.fft2mel

carat.util.fft2mel(freq, nfilts, minfreq, maxfreq)[source]

This method returns a 2-D Numpy array of weights that map a linearly spaced spectrogram to the Mel scale.

Args:
freq (1-D Numpy array): frequency of the components of the DFT. nfilts (): number of output bands. minfreq (): frequency of the first MEL coefficient. maxfreq (): frequency of the last MEL coefficient.
Returns:
The center frequencies in Hz of the Mel bands.