Mercurial > pyntnclick
comparison gamelib/speech.py @ 110:545dee3bd8e9
Remove debugging print.
author | Simon Cross <simon@simonx> |
---|---|
date | Tue, 24 Aug 2010 14:33:48 +0200 |
parents | 66898d810247 |
children | a2c09200a433 |
comparison
equal
deleted
inserted
replaced
109:66898d810247 | 110:545dee3bd8e9 |
---|---|
33 key = (thing_name, text) | 33 key = (thing_name, text) |
34 if key in _SPEECH_CACHE: | 34 if key in _SPEECH_CACHE: |
35 return _SPEECH_CACHE[key] | 35 return _SPEECH_CACHE[key] |
36 filename = get_filename(thing_name, text) | 36 filename = get_filename(thing_name, text) |
37 _SPEECH_CACHE[key] = sound = get_sound("speech", filename) | 37 _SPEECH_CACHE[key] = sound = get_sound("speech", filename) |
38 print filename, sound | |
39 return sound | 38 return sound |
40 | 39 |
41 | 40 |
42 def say(thing_name, text): | 41 def say(thing_name, text): |
43 """Play text as speech.""" | 42 """Play text as speech.""" |