Update espeak.py
This commit is contained in:
parent
f02ba7910e
commit
b4f1c0605a
@ -25,10 +25,10 @@ class driver():
|
|||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def speak(self,text, queueable=True):
|
def speak(self,text, interrupt=True):
|
||||||
if not self._isInitialized:
|
if not self._isInitialized:
|
||||||
return False
|
return False
|
||||||
if not queueable:
|
if not interrupt:
|
||||||
self.cancel()
|
self.cancel()
|
||||||
self._es.synth(text)
|
self._es.synth(text)
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user