From 615ee2e90cf9e0651407904d95e2946e3729e3a2 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 5 Jul 2016 14:52:03 -0400 Subject: [PATCH] Added some code to gn.py mostly based on the es.py module. --- src/speech/gn.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/speech/gn.py b/src/speech/gn.py index e69de29b..44b65ad0 100644 --- a/src/speech/gn.py +++ b/src/speech/gn.py @@ -0,0 +1,20 @@ +#!/usr/bin/python + +# Generic speech driver + +class speech(): + def __init__(self, ): + self.gn = None + self.isInitialized = False +# try: + + + def speak(self,text, queueable=True): + if queueable == False: self.stop() + self.gn.synth(text) + + def stop(self): + self.gn.cancel() + + def clear_buffer(self): + pass