malarvz
malarvz

Reputation: 9

Numpy memory error while using audio analysis using python

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

Upvotes: 0

Views: 114

Answers (1)

Daniel F
Daniel F

Reputation: 14399

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

Upvotes: 1

Related Questions