getFilterBanks

fun getFilterBanks(    nFilt: Int = 20,     nfft: Int = 512,     sampleRate: Int = 16000,     lowFreq: Int = 0,     highFreqIn: Int? = null): Array<FloatArray>

Compute a Mel-filterbank. The filters are stored in the rows, the columns correspond to fft bins. The filters are returned as an array of size nfilt * (nfft/2 + 1)

Return

An array of size nfilt * (nfft/2 + 1) containing filterbank. Each row holds 1 filter.

Parameters

nFilt

the number of filters in the filterbank, default 20.

nfft

the FFT size. Default is 512.

sampleRate

the samplerate of the signal we are working with. Affects mel spacing.

lowFreq

lowest band edge of mel filters, default 0 Hz

highFreqIn

highest band edge of mel filters, default samplerate/2