espeak driver initial

This commit is contained in:
chrys 2016-07-05 19:35:11 +02:00
parent b4c3898543
commit 61aeac28e6

View File

@ -3,20 +3,23 @@
# Espeak driver
class speech():
isInitialized = False
def __init__(self):
try:
pass
isInitialized = True
except:
initialized = False
def __init__(self, ):
self.es = None
self.isInitialized = False
# try:
from espeak import espeak
self.es = espeak
self.isInitialized = True
# except:
# self.initialized = False
def speak(text, queueable=True):
def speak(self,text, queueable=True):
if queueable == False: self.stop()
self.es.synth(text)
def stop(self):
pass
self.es.cancel()
def clear_buffer(self):
pass