sys.exit(-1)
wf = wave.open(sys.argv[1], 'rb')
p = pyaudio.PyAudio()
stream = p.open(format=p.get_format_from_width(wf.getsampwidth()), channels
    =wf.getnchannels(), rate=wf.getframerate(), output=True)
data = wf.readframes(chunk)
while data != '':
    stream.write(data)
data = wf.readframes(chunk)
stream.close()
p.terminate()
Воспроизведение звука в Windows (от XP до Windows 7) с помощью python?