diff --git a/scikits/talkbox/features/mfcc.py b/scikits/talkbox/features/mfcc.py index 453b4a5..13d917c 100644 --- a/scikits/talkbox/features/mfcc.py +++ b/scikits/talkbox/features/mfcc.py @@ -107,7 +107,7 @@ def mfcc(input, nwin=256, nfft=512, fs=16000, nceps=13): # Filter the spectrum through the triangle filterbank mspec = np.log10(np.dot(spec, fbank.T)) # Use the DCT to 'compress' the coefficients (spectrum -> cepstrum domain) - ceps = dct(mspec, type=2, norm='ortho', axis=-1)[:, :nceps] + ceps = dct(mspec, type=2, norm='ortho', axis=-1)[:, 1:nceps] return ceps, mspec, spec