mel_filter_bank

ketos.audio.utils.misc.mel_filter_bank(num_fft, rate, num_filters)[source]

Compute Mel-scale filter bank

Args:
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:
fbank: numpy.array

Mel filter bank, has shape (num_filters, int(np.floor(num_fft / 2 + 1))