connect as soon as speech-dispatcher is available
This commit is contained in:
parent
65b7b8d81a
commit
31b60f5a39
@ -27,12 +27,12 @@ class driver():
|
|||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
if not self._isInitialized:
|
if not self._isInitialized:
|
||||||
return
|
return
|
||||||
self._isInitialized = False
|
|
||||||
self.cancel()
|
self.cancel()
|
||||||
try:
|
try:
|
||||||
self._sd.close()
|
self._sd.close()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
self._isInitialized = False
|
||||||
|
|
||||||
def speak(self,text, queueable=True):
|
def speak(self,text, queueable=True):
|
||||||
if not self._isInitialized:
|
if not self._isInitialized:
|
||||||
|
Loading…
Reference in New Issue
Block a user