def mfcc_col(buff_test):
    window = 2048
    half_window = int((window / 2))
    n_mels = 128
    n_coeff = 13
    assert (buff_test.shape == (window,))
    hann_asym_f32 = hann(window, sym=False).astype('float32')
    assert (hann_asym_f32.shape == (window,)), hann_asym_f32.shape
    buff_hann = (buff_test * hann_asym_f32)
    assert (buff_hann.shape == (window,)), buff_hann.shape
    fft = np.fft.fft(buff_hann, window)[:(half_window + 1)]
    assert (fft.shape == ((half_window + 1),)), fft.shape
    ps = (np.abs(fft) ** 2)
    assert (ps.shape == ((half_window + 1),))
    mel = librosa.filters.mel(sr, window, n_mels)
    assert (mel.shape == (n_mels, (half_window + 1)))
    energy = np.dot(mel, ps)
    assert (energy.shape == (n_mels,))
    logamplitude = (10 * np.log10(energy))
    assert (logamplitude.shape == (n_mels,))
    dct_out = dct(logamplitude, type=3)
    assert (dct_out.shape == (n_mels,))
    return dct_out[1:(n_coeff + 1)]
def mfcc_col(buff_test):
    window = 2048
    half_window = int((window / 2))
    n_mels = 128
    n_coeff = 13
    assert (buff_test.shape == (window,))
    hann_asym_f32 = hann(window, sym=False).astype('float32')
    assert (hann_asym_f32.shape == (window,)), hann_asym_f32.shape
    buff_hann = (buff_test * hann_asym_f32)
    assert (buff_hann.shape == (window,)), buff_hann.shape
    fft = np.fft.fft(buff_hann, window)[:(half_window + 1)]
    assert (fft.shape == ((half_window + 1),)), fft.shape
    ps = (np.abs(fft) ** 2)
    assert (ps.shape == ((half_window + 1),))
    mel = librosa.filters.mel(sr, window, n_mels)
    assert (mel.shape == (n_mels, (half_window + 1)))
    energy = np.dot(mel, ps)
    assert (energy.shape == (n_mels,))
    logamplitude = (10 * np.log10(energy))
    assert (logamplitude.shape == (n_mels,))
    dct_out = dct(logamplitude, type=3)
    assert (dct_out.shape == (n_mels,))
    return dct_out[1:(n_coeff + 1)]