Issues 64 - Removing undesirable thread from speak function

pull/76/merge
Jonathan D'Orleans 2016-05-27 16:16:55 -04:00 committed by Jonathan D'Orleans
parent 031fdfeb4d
commit 9f713879b0
1 changed files with 5 additions and 15 deletions

View File

@ -174,21 +174,11 @@ class AudioConsumer(threading.Thread):
self.state.skip_wakeword = False
def __speak(self, utterance):
"""
Speak commands should be asynchronous to avoid filling up the portaudio
buffer.
:param utterance:
:return:
"""
def target():
payload = {
'utterance': utterance,
'session': SessionManager.get().session_id
}
self.emitter.emit("speak", Message("speak", metadata=payload))
threading.Thread(target=target).start()
payload = {
'utterance': utterance,
'session': SessionManager.get().session_id
}
self.emitter.emit("speak", Message("speak", metadata=payload))
def _create_remote_stt_runnable(self, audio, utterances):
def runnable():