Closed alok760 closed 5 years ago
I am working on this.
It is trivial, in busy_state.py
there is a long list of
if 'xxx' in reply.keys():
...
These are no elif
but just if ...
There is a test
if 'answer' in reply.keys():
logger.info('Susi: %s', reply['answer'])
lights.off()
lights.speak()
self.__speak(reply['answer'])
lights.off()
else:
lights.off()
lights.speak()
self.__speak("I don't have an answer to this")
lights.off()
but when recognizing stop the only return value is
{'stop': <susi_python.models.StopAction object at 0x7f8ac72b98d0>}
so the I don't have any answer to this
is spoken.
Later on there is
if 'stop' in reply.keys():
player.stop()
(in my branch).
That whole part of code needs a serious rewrite ...
Furthermore, the pause
action is broken and returns:
[<susi_python.models.MediaAction object at 0x7f7afe4ef2b0>]
2019-05-31 15:06:53 ERROR:main.states.busy_state: Got error: 'MediaAction' object has no attribute 'type'
Error: None
Ok, fixed susi_python
, it was broken for MediaAction and didn't set the type
.
Fixed pause, resume, etc etc in my sound branch, see commit https://github.com/norbusan/susi_linux/commit/6048ace543bb89595e647fa45e2fce36010340ff
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behaviour: Smart Speaker -
Expected behavior
A clear and concise description of what you expected to happen.