From 9efaa1b700689d1276a55560f9c13a2af8debe8f Mon Sep 17 00:00:00 2001 From: Jezra Date: Fri, 12 Apr 2013 12:24:56 -0700 Subject: Updated TTS.py to run standalone --- TTS.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/TTS.py b/TTS.py index 4473986..de4b61a 100755 --- a/TTS.py +++ b/TTS.py @@ -44,6 +44,7 @@ class TTS(gobject.GObject): self.pipeline.set_state(gst.STATE_PAUSED) def result(self, asr, text, uttid): + #emit finished self.emit("finished", True) print text #is there a matching command? @@ -53,8 +54,6 @@ class TTS(gobject.GObject): subprocess.call(cmd, shell=True) else: print "no matching command" - #emit finished - def read_commands(self): #read the.commands file @@ -74,8 +73,8 @@ class TTS(gobject.GObject): strings.close() if __name__ == "__main__": - b = Blather() - b.listen() + tts = TTS() + tts.listen() main_loop = gobject.MainLoop() #start the main loop try: -- cgit 1.4.1