Added some code to gn.py mostly based on the es.py module.

This commit is contained in:
Storm Dragon 2016-07-05 14:52:03 -04:00
parent 61aeac28e6
commit 615ee2e90c

View File

@ -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