Issues 64 - Removing undesirable thread from speak function
parent
031fdfeb4d
commit
9f713879b0
|
@ -174,22 +174,12 @@ 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()
|
||||
|
||||
def _create_remote_stt_runnable(self, audio, utterances):
|
||||
def runnable():
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue