audio playback

Kare Sjolander kare at speech.kth.se
Thu Dec 21 11:18:18 EST 2000


One way is to use Snack, http://www.speech.kth.se/snack/, which Windows
95/98/NT/2000, Linux, Macintosh, Sun Solaris, HP-UX, NetBSD, and SGI
IRIX.

To play a sound file

from tkSnack import *
initializeSnack(Tkinter.Tk())

s = Sound(file='ex1.wav')

s.play()


There are many options, e.g. to add an echo effect during playback you
could use:

f = Filter('echo', 0.6, 0.6, 30, 0.4)

s.play(filter=f)


Kare





More information about the Python-list mailing list