简体   繁体   中英

why does import wave produce a figure of a wave and not play wav files

The following link has an example of using python wave to play a wav file.

pyaudio help play a file

The trouble is on my computer any script with 'import wave' just produces a picture of a wave and does nothing else. (ie the rest of the script doesn't even run.) I have no idea why this is. Is there a way to fix this? I'm running python 2.7 on windows XP.

您很可能在当前目录(或PYTHONPATH某处)中运行了一个名为wave.py的文件,而不是运行相同名称的标准库模块。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM