Always call stop_playback even when there is no user request

This commit is contained in:
Fabio Manganiello 2018-03-26 00:32:03 +02:00
parent 1f2b5432b3
commit 7dd3bb9915

View file

@ -299,9 +299,12 @@ class SampleAssistant(object):
logging.info('Finished playing assistant response.')
if user_request:
try:
self.conversation_stream.stop_playback()
if self.on_speech_recognized:
except:
pass
if user_request and self.on_speech_recognized:
self.on_speech_recognized(user_request)
return (user_request, continue_conversation)