1#! /usr/bin/env python
2
3from Tkinter import *
4from tkSnack import *
5
6root = Tkinter.Tk()
7
8initializeSnack(root)
9
10# Load the sphere format package
11
12Tk().tk.eval('package require snacksphere')
13
14snd = Sound()
15
16file = 'test.sph'
17
18print 'reading sphere file \'%s\'' % file
19snd.read(file)
20
21print 'playing file \'%s\'' % file
22snd.play(blocking=1)
23
24print 'writing wav file \'%s\'' % file
25snd.write('new.wav')
26