Opening a wave file in python: unknown format: 49. What's going wrong?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I try to open a wave file with the wave module, but I keep getting the same error whatever I try. The line with the error is the following: wav = wave.open(f) This is the error message: Traceback (most recent call last): File "annotate.py", line 47, in <module> play(file) File "annotate.py", line 33, in play wav = wave.open(f) File "C:\Program Files (x86)\Python\lib\wave.py", line 498, in open return Wave_read(f) File "C:\Program Files (x86)\Python\lib\wave.py", line 163, in __init__ self.initfp(f) File "C:\Program Files (x86)\Python\lib