comparison scripts/regen-speech.py @ 576:1b1ab71535bd pyntnclick

Classify constants, which involves a whole bunch of XXX comments
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 11 Feb 2012 16:02:06 +0200
parents 66898d810247
children
comparison
equal deleted inserted replaced
575:970cdc219e15 576:1b1ab71535bd
8 from gamelib import speech 8 from gamelib import speech
9 9
10 from albow.resource import resource_path 10 from albow.resource import resource_path
11 11
12 from pygame.locals import SWSURFACE 12 from pygame.locals import SWSURFACE
13 from gamelib.constants import SCREEN 13 from gamelib.constants import GameConstants
14 14
15 # We need this stuff set up so we can load images and whatnot. 15 # We need this stuff set up so we can load images and whatnot.
16 pygame.display.init() 16 pygame.display.init()
17 pygame.display.set_mode(SCREEN, SWSURFACE) 17 pygame.display.set_mode(GameConstants().screen, SWSURFACE)
18 18
19 19
20 def espeak(text, filename, voice="en-sc"): 20 def espeak(text, filename, voice="en-sc"):
21 """Call espeak. Use espeak --voices for list of voices.""" 21 """Call espeak. Use espeak --voices for list of voices."""
22 tmpfile = "%s.wav" % filename 22 tmpfile = "%s.wav" % filename