Play .wav files

Justin Shaw wyojustin at hotmail.com
Mon Jan 20 21:00:07 EST 2003


"Gumuz" <gumuz at looze.net> wrote in message
news:3e2becc7$0$811$4d4ebb8e at news.nl.uu.net...
> I have found the wave module to read/manipulate/write .wav files. I can
look
> up particular positions/sections of a wave file, but I was wondering how i
> could play them.
>
>
> regards,
>
> Guyon

I love tkSnack (http://www.speech.kth.se/snack/pyinstall.html)
import tkSnack, Tkinter

root = Tkinter.Tk()

tkSnack.initializeSnack(r)

snd = Sound()
snd.read('ex1.wav')
snd.play()

snd.record()
time.sleep(1)
snd.stop()
snd.play()






More information about the Python-list mailing list