snipsco / snips-issues

Feel free to share your bugs with us.
14 stars 5 forks source link

[Platform] I have an error on my Satellite after hot word detected. #175

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hello,

What's the issue? I have an error on my satellite after that the hotword detected. Sometimes after several reboots or restart snips services, the satellite works correctly. So I think that my configurations are right.

Use Cases Impacted My satellite doesn't work most of the time.

Version and Environment I have a Raspberry Pi 3 with the snips base and I have another Raspberry Pi 3 with Jeedom and snips-satellite. Both Raspberry Pi 3 have the same OS (Stretch) and the same snips version 0.63.3

Logs

snips-watch -vvv from the satellite :

image

snips-watch -vvv from the base :

image

sam status on snips base : image

sam status on snips satellite : image

Additional information

I tried to restart the snips-satellite services but it doesn't work. I also tried to enable or disable the partial asr configuration.

On snips base, I only change below :

[snips-asr]
partial = true
partial_period_ms = 250

[snips-audio-server]
bind = "master@mqtt"

[snips-hotword]
audio = ["master@mqtt"]

On snips satellite, I only change below :

[snips-common]
mqtt = "192.168.1.100:1883"           # The ip address of snips base

[snips-audio-server]
bind = "living-room@mqtt"

[snips-hotword]
model = "/usr/share/snips/hotword"
audio = ["living-room@mqtt"]

Workaround I tried to find a workaround without success.

cpoisson commented 5 years ago

Hi @juliendev20,

Feels like a configuration issue.

Your sam status shows that snips-audio-server and snips-hotword are running on your satellite. They are not supposed to be here if you only use snips-satellite

cpoisson commented 5 years ago

@juliendev20 , I have never tested the asr partial feature with a satellite configuration 🤔

Just in case, try do deactivate it if the satellite configuration procedure does not solve your problem.

otherwise, your snips.toml configuration looks good to me.

Also, on your satellite can you:

uninstall the audio-server and snips-hotword

sudo apt remove snips-audio-server snips-hotword

install snips-satellite and hey snips hotword model

sudo apt install snips-hotword-model-heysnipsv4
sudo apt install snips-satellite

If it does not work, send me the output of:

sudo systemctl stop snips-satellite
sudo -u _snips snips-satellite -v

along with the snips-watch -vvv output on your base

ghost commented 5 years ago

Thank you for your reply. I followed another site for the satellite configuration. It's my mistake sorry. I should have to follow the official documentation. It's work well now and I confirm that the partial feature works well with a satellite.

Thank you so much.

cpoisson commented 5 years ago

👍 Can you give me the link to this documentation? I'll try to contact the author

cpoisson commented 5 years ago

Ok, I think it is this one :) https://www.coxprod.org/domotique/installation-de-satellites-snips/

ghost commented 5 years ago

Yes It's https://www.coxprod.org/domotique/installation-de-satellites-snips/ :+1:

cedcox commented 4 years ago

Hello,

yes i'm the writer of this "old" article. I write a new one with the new method ;)

thanks for job ;)

Cedric