PyAudio示例语法

时间:2016-01-10 23:02:31

标签: python python-2.7 pyaudio

http://people.csail.mit.edu/hubert/pyaudio/#examples

尝试从cmd行使用'python test.py c:\ test.wav'运行上面的PyAudio示例返回:

File "test.py", line 11, in <module>
  wf = wave.open(sys.argv[1], 'rb')
File "C:\Python27\lib\wave.py", line 511, in open
  return Wave_read(f)
File "C:\Python27\lib\wave.py", line 160, in __init__
  f = __builtin__.open(f, 'rb')
IOError: [Errno 2] No such file or directory: 'c:\\test.wav' 

我尝试过多个音频文件和位置。我错过了什么?

Windows 7 64位 Python 2.7

0 个答案:

没有答案