Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > d38720fb54e027df26fb6c1d066b4398 > files > 21

python-snack-2.2.10-7mdv2009.1.i586.rpm

#! /usr/bin/env python

from Tkinter import *
from tkSnack import *

root = Tkinter.Tk()

initializeSnack(root)

# Load the sphere format package

Tk().tk.eval('package require snacksphere')

snd = Sound()

file = 'test.sph'

print 'reading sphere file \'%s\'' % file
snd.read(file)

print 'playing file \'%s\'' % file
snd.play(blocking=1)

print 'writing wav file \'%s\'' % file
snd.write('new.wav')