Currently, I'm writing a python script, which should do the following:
- read an audio file respectively a wav file via scipy.io.wavfile.read().
- calculate the spectrogram of given wav file.
- write the data from spectrogram back into a wav file.
When I try to run the script, I get the following error:
Traceback (most recent call last):
File "demo2.py", line 61, in <module>
F,T,S = scipy.signal.spectrogram(s_mono,rate,window,None,nOverlap,nFFT)
AttributeError: 'module' object has no attribute 'spectrogram'
Which is rather strange, because in my opinion my code should work fine. I've already checked for Syntax Errors and I also looked up in the official scipy documentation but I couldn't find any clue what could possible be wrong with it.
Here's a little snippet of my code:
import scipy
from scipy import signal
import scipy.io.wavfile as wav
#---------------------------------
# here's the rest of my code
F,T,S = scipy.signal.spectrogram(s_mono,rate,window,None,nOverlap,nFFT)
Additional Information: I'm working on a MacBook with MacOS 10.9.5