In this line: https://github.com/jameslyons/python_speech_features/blob/9a2d76c6336d969d51ad3aa0d129b99297dcf55e/python_speech_features/base.py#L169 I think you are assuming that np.floor(t+1) = np.round(t), but that is not true. I think your want: bin = numpy.round((nfft)*mel2hz(melpoints)/samplerate) bin = numpy.floor((nfft+0.5)*mel2hz(melpoints)/samplerate) This is a minor point because they often give the same and it doesn't matter in practice. I just found this point a little confusing in your write-up. Thanks for the blogpost and this code!
Activity