Can't get scipy.io.wavfile.read() to work
<p>I am trying to read a .wav file into an array so that I can then plot the array and do a FFT. I got the file open with the wave module and now I am struggling. I was advised to use scipy.io.wavfile.read(filename, mmap=False) but am not having any luck. This function should do exactly what I want it to do but it isn't. I am running Python 2.7 and maybe that is it. Please help me figure out how to make this work. The code I have written is below.</p>

<pre><code>import scipy
import wave
harp=wave.open('/Users/williamweiss2/Desktop/Test 2/harp.wav','r')
frames_harp=harp.getnframes()
harp_rate,harp_data=scipy.io.wavfile.read(harp,mmap=False)
</code></pre>

<h2>This is the error I am getting when I try to run the program.</h2>

<p>---> harp_rate,harp_data=scipy.io.wavfile.read(harp,mmap=False)</p>

<p><strong>AttributeError: 'module' object has no attribute 'io'</strong> </p>

<p>Any help would be greatly appreciated. Thanks in advance.</p>