espeak driver initial
This commit is contained in:
parent
b4c3898543
commit
61aeac28e6
@ -3,20 +3,23 @@
|
|||||||
# Espeak driver
|
# Espeak driver
|
||||||
|
|
||||||
class speech():
|
class speech():
|
||||||
isInitialized = False
|
def __init__(self, ):
|
||||||
|
self.es = None
|
||||||
def __init__(self):
|
self.isInitialized = False
|
||||||
try:
|
# try:
|
||||||
pass
|
from espeak import espeak
|
||||||
isInitialized = True
|
self.es = espeak
|
||||||
except:
|
self.isInitialized = True
|
||||||
initialized = False
|
# except:
|
||||||
|
# self.initialized = False
|
||||||
|
|
||||||
def speak(text, queueable=True):
|
|
||||||
|
def speak(self,text, queueable=True):
|
||||||
if queueable == False: self.stop()
|
if queueable == False: self.stop()
|
||||||
|
self.es.synth(text)
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
pass
|
self.es.cancel()
|
||||||
|
|
||||||
def clear_buffer(self):
|
def clear_buffer(self):
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user