Added some code to gn.py mostly based on the es.py module.
This commit is contained in:
parent
61aeac28e6
commit
615ee2e90c
@ -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
|
Loading…
Reference in New Issue
Block a user