Ask command is not working

#1

Hello,

I have followed the following guide to create a GetAnswer binding : https://docs.snips.ai/articles/raspberrypi/jeedom/fr

In a scenario, I use the following command : #[Snips-Intents][Snips-TTS-entree][ask]# but the question is not played by the TTS.

When looking at sam watch, the reason is that this is not asked to the satellite but to the default (which is my VM wihout soundcard).

[11:31:14] [Dialogue] was asked to start a session
[11:31:14] [Asr] was asked to stop listening on site default
[11:31:14] [Hotword] was asked to toggle itself ‘off’ on site default
[11:31:14] [Dialogue] session with id ‘e473e640-d85c-41a3-a136-590682926d7b’ was queued on site default
[11:31:14] [Dialogue] session with id ‘e473e640-d85c-41a3-a136-590682926d7b’ was started on site default
[11:31:14] [Tts] was asked to say “est-ce qu’on est prêt ?”
[11:31:14] [AudioServer] was asked to play a wav of 48.5 kB with id ‘bf2e2c5a-87e0-4004-8d71-fb248860c938’ on site default
[11:31:29] [Dialogue] session with id ‘e473e640-d85c-41a3-a136-590682926d7b’ was ended on site default. The session was ended because one of the component didn’t respond in a timely manner
[11:31:29] [Asr] was asked to stop listening on site default
[11:31:29] [Hotword] was asked to toggle itself ‘on’ on site default

Can you fix this issue for the next plugin release as it’s broken for already several months. Net working for pluging versions later than the stable one of November.

Thanks.

#2

Hi @coorfang,
After some debugging on my side, I have identified the bug. It’s coming from the function publish_start_session_action in the file snips.hermes.class.php.

The issue is in the following code:
if ($site_id) {
payload['siteId'] = session_id;
}

If you change it in:
if ($site_id) {
payload['siteId'] = site_id;
}

then everything works perfect :slightly_smiling_face:

Please could you fix it in the next delivery.
fx

1 Like
#3

Hi @tuxedo78

Thanks for this debugging.

The latest release 0.1.4 solved this issue. :wink:

It’s available now in the Jeedom market.