jameslyons/python_speech_features

rfft vs fft

mohjaba opened this issue · 1 comments

Hi, in the file "sigproc.py" in line 102 & 103:

complex_spec = numpy.fft.rfft(frames, NFFT)
return numpy.absolute(complex_spec)

"rfft" return real not complex, you can use "fft" instead or keep it and no need for "numpy.absolute"