diff options
author | Jezra <jezra@jezra.net> | 2013-04-12 12:24:56 -0700 |
---|---|---|
committer | Jezra <jezra@jezra.net> | 2013-04-12 12:24:56 -0700 |
commit | 9efaa1b700689d1276a55560f9c13a2af8debe8f (patch) | |
tree | e865b18af28b9a343bb7d593a2da125c42e832ea | |
parent | b9632d0ab2f236e949d2d23c0360891c2c83d24b (diff) |
Updated TTS.py to run standalone
-rwxr-xr-x | TTS.py | 7 |
1 files 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: |