Jan-16-2019, 04:42 PM
Hello
I am running a simple audio read program:
import matplotlib.pyplot as plt
import scipy.io.wavfile
rate, data = scipy.io.wavfile.read('file.wav')
plt.plot(data)
plt.show()
but its giving following error:
I am running a simple audio read program:
import matplotlib.pyplot as plt
import scipy.io.wavfile
rate, data = scipy.io.wavfile.read('file.wav')
plt.plot(data)
plt.show()
but its giving following error:
Error:Traceback (most recent call last):
File "/home/pi/wav_try.py", line 3, in <module>
rate, data = scipy.io.wavfile.read('file.wav')
File "/home/pi/.local/lib/python3.5/site-packages/scipy/io/wavfile.py", line 264, in read
is_big_endian, mmap)
File "/home/pi/.local/lib/python3.5/site-packages/scipy/io/wavfile.py", line 129, in _read_data_chunk
data = numpy.frombuffer(fid.read(size), dtype=dtype)
OverflowError: cannot fit 'int' into an index-sized integer
Please guide how to solve it?