forked from platypush/platypush
Always call stop_playback even when there is no user request
This commit is contained in:
parent
1f2b5432b3
commit
7dd3bb9915
1 changed files with 6 additions and 3 deletions
|
@ -299,10 +299,13 @@ class SampleAssistant(object):
|
||||||
|
|
||||||
logging.info('Finished playing assistant response.')
|
logging.info('Finished playing assistant response.')
|
||||||
|
|
||||||
if user_request:
|
try:
|
||||||
self.conversation_stream.stop_playback()
|
self.conversation_stream.stop_playback()
|
||||||
if self.on_speech_recognized:
|
except:
|
||||||
self.on_speech_recognized(user_request)
|
pass
|
||||||
|
|
||||||
|
if user_request and self.on_speech_recognized:
|
||||||
|
self.on_speech_recognized(user_request)
|
||||||
|
|
||||||
return (user_request, continue_conversation)
|
return (user_request, continue_conversation)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue