Numpy memory error while using audio analysis using python

114 Views Asked by At

I get the following error, while I test a more than 100 mb audio file.

Traceback (most recent call last):
File "C:\Users\opensource\Desktop\pyAudioAnalysis-master\audioFeatureExtractio
n.py", line 542, in stFeatureExtraction signal = numpy.double(signal)MemoryError
1

There are 1 best solutions below

0
On

Assuming your data was int16 before, by upcasting to float64, you quadrupled the size of your array. This is likely more than the memory you had left, and it threw a MemoryError