我正在尝试使用 scipy 读取 *.wav 文件。我执行以下操作:
import scipy
x = scipy.io.wavfile.read('/usr/share/sounds/purple/receive.wav')
由于这段代码,我得到:
Traceback (most recent call last):
File "test3.py", line 2, in <module>
x = scipy.io.wavfile.read('/usr/share/sounds/purple/receive.wav')
AttributeError: 'module' object has no attribute 'io'
有人知道这里有什么问题吗?先感谢您。