How to speak to Gladys with Snips assistant


#163

ha non :confused: je les fait dans pi
tu pourrais me donner le chemin stp ?


#164

salut,
Bon du coup j abandonne trop compliquer pour moi :confused:

Je comprend pas avent de faire setup audio le test micro m’entendait, mais snips audio serveur aller pas et maintenant quant je refait le test il n’entend plus rien, alors que dans sam status il et activer.

( j’ai une ps3 eyes )

OS version … Raspbian GNU/Linux 9 (stretch)
Installed assistant … Not installed
Status … Live (no assistant)

Service status:

snips-analytics .............. 0.60.10 (not running)
snips-asr .................... 0.60.10 (not running)
snips-audio-server ........... 0.60.10 (running)
snips-dialogue ............... 0.60.10 (not running)
snips-hotword ................ 0.60.10 (not running)
snips-nlu .................... 0.60.10 (not running)
snips-skill-server ........... 0.60.10 (running)
snips-tts .................... 0.60.10 (running)

merci d’avoir essayer de m aider :wink:


#165

Salut :slight_smile:

je ne l’ai pas encore installé, j’avais essayé vite fait mais j’étais bloqué déjà lors de la première connexion (vu que j’utilise un autre port que le 22 pour ssh, par sécurité) et je n’ai pas le temps de poursuivre … Dommage que tu abandonnes … Je serais toi, je reprendrais depuis le début et à chaque ligne de commande envoyé tu copies tous les logs que te donne la console, tu screen tous ce que Gladys t’indique sur l’interface. Tu seras exactement où ça coince ainsi que la communauté. Et ça sera bien plus facile de t’aider.

Snips me tente vraiment, si j’ai un petit moment cet aprem je commencerais l’installation et je prendrais des notes au cas où …


#166

salut @Jean34

Snips m’intéresse vraiment aussi, mais je suis pas sur de me débrouiller avec tout sa, je connaissais pas du-tout le ssh et autre avant de commencer Gladys (et je suis vraiment pas bon an anglais j’utilise google trad XD )

Merci pour ton message, je vais voir pour faire comme sa je recommencerais tout a 0 lundi.


#167

Salut à tous !

Merci @Jean-Philippe pour ce module snips ! Je viens de faire joujou avec tout ça, la reconnaissance vocale fonctionne bien, j’arrive à contrôler mes équipements avec Snips.

Par contre je bloque sur le TTS. Snips ne me répond pas après avoir effectuée une action.
Dans l’onglet de notification de Gladys j’ai mis snips en premier et websocket en second.

Voici le retour d’un pm2 logs gladys :

0|gladys   | Brain : answer : Found 2 possible.
0|gladys   | Brain : answer : Trying to contact socket
0|gladys   | Message sent with success with socket.
0|gladys   | Brain : answer : Trying to contact snips
0|gladys   | Unable to reach user with service snips. Trying with other services.
0|gladys   | User is not available on any service. Cannot contact him.
0|gladys   | brain : classify : Answered in 0s, 367.663 ms

Il semblerait que Gladys/Snips ne détecte pas que je suis à la maison. Ca me semble étrange car j’utilise le module Network scanner afin de savoir si je suis à la maison ou non. J’ai même forcé ma présence en créant un événement “retour à la maison”, mais ce n’est pas mieux.

Avez-vous une idée de ce qui peut se passer ?

Merci.


#168

Salut,

La partie est grunt est une difficulté de la V3, le travail en cours vise à simplifier ca pour la V4.
En l’état, il te faut :

  1. aller en ssh sur la machine
  2. se positionner sur le home de gladys (cd /home/pi/gladys sur l’image ?)
  3. lancer la commande grunt buildProd
  4. pm2 restart gladys

Concernant snips, il faut que tous les process listés soient en running sur un serveur central.
Si tu utilises des satellites (des pi 0 dans différentes pièces par exemple), ces satellites n’ont besoin que des process

  • snips-audio-server
  • snips-hotword

pour fonctionner.

Dans tous les cas, on voit dans ton précédent post que à minima snips-hotword est en not running donc logique que ca ne marche pas.

Tu peux faire soit

  • sam restart service
  • sudo systemctl restart snips-*

Si tu as toujours des not running, regarde du coté des logs:

sudo tail -200 /var/log/syslog

#169

Salut,

Comme mentionné dans mon premier post, la partie réponse nécessite que le core de gladys sache gérer la room d’origine de la demande et transfère cette info au mécanisme qui répond, pour répondre dans la bonne pièce.
Hors dans la version actuelle, ca n’est pas géré, il faut attendre la validation d’un changement que j’ai proposé pour que Gladys puisse te répondre dans la bonne pèce.


#170

Merci pour la réponse rapide !
J’ai lu tellement de chose sur ce topic que j’ai oublié ce que j’ai lu il y a quelques jours, désolé :slight_smile:


#171

Salut @Jean-Philippe,

Après les multiples problèmes de reconnaissances des mots “perso” comme “table de nuit” ou autre, j’ai décidé de pousser l’investigation. J’ai trouvé la source de toutes mes emmerdes ; je m’explique, au début, quand ton module snips (dans gladys) réalise l’injection des devicestypes, … dans l’assistant snips, j’avais cette ligne dans sam watch : [18:29:13] [Injection] an injection of 51 words for 7 entities has been requested
Donc jusque là, pas de problèmes puisqu’il reçoit bien mes mots perso.
Par contre impossible de les utiliser même après cette injection et redémarrage ect.

En cherchant sur les doc developpement de snips, j’ai trouvé ceci :


nécessitant une installation supplémentaire par rapport à la plateforme snips installée par sam

Après l’avoir installé, je retourne dans gladys, clique sur injection et pouf :

[18:29:13] [Injection] an injection of 51 words for 7 entities has been requested
[18:29:19] [Asr] was asked to reload its model
[18:29:19] [Nlu] was asked to reload its engine

Ici il à l’air de les avoir pris en compte et même redémarré les services concernés. Je teste et magie il reconnait mes mots ! :smile:

Bon ce n’est pas encore ça car j’ai du mal a faire agir gladys en conséquence, mais ça se passe coté gladys, plus de problème coté module :smiley:


#172

C’est mentionné dans le Readme, l’install du snips-injection :slight_smile:


#173

salut @Jean-Philippe,

j’ai fait se que tu ma dit de faire et, j’ai toujours plein de not running, du coup j’ai fait:
sudo tail -200 /var/log/syslog
et voici le résultat :

> Jan 28 07:39:34 gladys systemd[1]: snips-dialogue.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:34 gladys systemd[1]: snips-hotword.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:34 gladys systemd[1]: snips-asr.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:34 gladys systemd[1]: snips-nlu.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:34 gladys systemd[1]: Stopped Snips NLU.
> Jan 28 07:39:34 gladys systemd[1]: Started Snips NLU.
> Jan 28 07:39:34 gladys systemd[1]: Stopped Snips ASR.
> Jan 28 07:39:34 gladys systemd[1]: Started Snips ASR.
> Jan 28 07:39:34 gladys systemd[1]: Stopped Snips Hotword.
> Jan 28 07:39:34 gladys systemd[1]: Started Snips Hotword.
> Jan 28 07:39:34 gladys systemd[1]: Stopped Snips Dialogue.
> Jan 28 07:39:34 gladys snips-nlu[27664]: ERROR:snips_nlu: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:34 gladys snips-nlu[27664]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:34 gladys snips-hotword[27666]: ERROR:snips_hotword: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:34 gladys snips-hotword[27666]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:34 gladys systemd[1]: Started Snips Dialogue.
> Jan 28 07:39:34 gladys systemd[1]: Stopped Snips Analytics.
> Jan 28 07:39:34 gladys snips-dialogue[27668]: ERROR:snips_dialogue: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:34 gladys snips-dialogue[27668]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:34 gladys systemd[1]: Started Snips Analytics.
> Jan 28 07:39:34 gladys snips-analytics[27669]: ERROR:snips_analytics: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:34 gladys snips-analytics[27669]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:34 gladys systemd[1]: snips-nlu.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:34 gladys systemd[1]: snips-nlu.service: Unit entered failed state.
> Jan 28 07:39:34 gladys systemd[1]: snips-nlu.service: Failed with result 'exit-code'.
> Jan 28 07:39:34 gladys systemd[1]: snips-hotword.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:34 gladys systemd[1]: snips-hotword.service: Unit entered failed state.
> Jan 28 07:39:34 gladys systemd[1]: snips-hotword.service: Failed with result 'exit-code'.
> Jan 28 07:39:34 gladys systemd[1]: snips-dialogue.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:34 gladys systemd[1]: snips-dialogue.service: Unit entered failed state.
> Jan 28 07:39:34 gladys systemd[1]: snips-dialogue.service: Failed with result 'exit-code'.
> Jan 28 07:39:34 gladys systemd[1]: snips-analytics.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:34 gladys systemd[1]: snips-analytics.service: Unit entered failed state.
> Jan 28 07:39:34 gladys systemd[1]: snips-analytics.service: Failed with result 'exit-code'.
> Jan 28 07:39:34 gladys snips-asr[27665]: ERROR:snips_asr: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:34 gladys snips-asr[27665]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:34 gladys systemd[1]: snips-asr.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:34 gladys systemd[1]: snips-asr.service: Unit entered failed state.
> Jan 28 07:39:34 gladys systemd[1]: snips-asr.service: Failed with result 'exit-code'.
> Jan 28 07:39:39 gladys systemd[1]: snips-nlu.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:39 gladys systemd[1]: snips-hotword.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:39 gladys systemd[1]: snips-analytics.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:39 gladys systemd[1]: snips-asr.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:39 gladys systemd[1]: snips-dialogue.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:39 gladys systemd[1]: Stopped Snips Dialogue.
> Jan 28 07:39:39 gladys systemd[1]: Started Snips Dialogue.
> Jan 28 07:39:39 gladys systemd[1]: Stopped Snips ASR.
> Jan 28 07:39:39 gladys systemd[1]: Started Snips ASR.
> Jan 28 07:39:39 gladys systemd[1]: Stopped Snips Analytics.
> Jan 28 07:39:39 gladys systemd[1]: Started Snips Analytics.
> Jan 28 07:39:39 gladys systemd[1]: Stopped Snips Hotword.
> Jan 28 07:39:39 gladys snips-dialogue[27674]: ERROR:snips_dialogue: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:39 gladys snips-dialogue[27674]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:39 gladys systemd[1]: Started Snips Hotword.
> Jan 28 07:39:39 gladys systemd[1]: Stopped Snips NLU.
> Jan 28 07:39:39 gladys systemd[1]: Started Snips NLU.
> Jan 28 07:39:39 gladys systemd[1]: snips-dialogue.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:39 gladys snips-nlu[27679]: ERROR:snips_nlu: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:39 gladys snips-nlu[27679]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:39 gladys snips-analytics[27676]: ERROR:snips_analytics: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:39 gladys snips-analytics[27676]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:39 gladys systemd[1]: snips-dialogue.service: Unit entered failed state.
> Jan 28 07:39:39 gladys systemd[1]: snips-dialogue.service: Failed with result 'exit-code'.
> Jan 28 07:39:39 gladys systemd[1]: snips-analytics.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:39 gladys systemd[1]: snips-analytics.service: Unit entered failed state.
> Jan 28 07:39:39 gladys systemd[1]: snips-analytics.service: Failed with result 'exit-code'.
> Jan 28 07:39:39 gladys systemd[1]: snips-nlu.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:39 gladys systemd[1]: snips-nlu.service: Unit entered failed state.
> Jan 28 07:39:39 gladys systemd[1]: snips-nlu.service: Failed with result 'exit-code'.
> Jan 28 07:39:39 gladys snips-asr[27675]: ERROR:snips_asr: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:39 gladys snips-asr[27675]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:39 gladys snips-hotword[27677]: ERROR:snips_hotword: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:39 gladys snips-hotword[27677]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:39 gladys systemd[1]: snips-asr.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:39 gladys systemd[1]: snips-asr.service: Unit entered failed state.
> Jan 28 07:39:39 gladys systemd[1]: snips-asr.service: Failed with result 'exit-code'.
> Jan 28 07:39:39 gladys systemd[1]: snips-hotword.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:39 gladys systemd[1]: snips-hotword.service: Unit entered failed state.
> Jan 28 07:39:39 gladys systemd[1]: snips-hotword.service: Failed with result 'exit-code'.
> Jan 28 07:39:44 gladys systemd[1]: snips-dialogue.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:44 gladys systemd[1]: snips-analytics.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:44 gladys systemd[1]: snips-asr.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:45 gladys systemd[1]: snips-hotword.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:45 gladys systemd[1]: snips-nlu.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:45 gladys systemd[1]: Stopped Snips NLU.
> Jan 28 07:39:45 gladys systemd[1]: Started Snips NLU.
> Jan 28 07:39:45 gladys systemd[1]: Stopped Snips Hotword.
> Jan 28 07:39:45 gladys systemd[1]: Started Snips Hotword.
> Jan 28 07:39:45 gladys systemd[1]: Stopped Snips ASR.
> Jan 28 07:39:45 gladys snips-nlu[27684]: ERROR:snips_nlu: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:45 gladys snips-nlu[27684]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:45 gladys systemd[1]: Started Snips ASR.
> Jan 28 07:39:45 gladys snips-hotword[27685]: ERROR:snips_hotword: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:45 gladys snips-hotword[27685]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:45 gladys systemd[1]: Stopped Snips Analytics.
> Jan 28 07:39:45 gladys systemd[1]: Started Snips Analytics.
> Jan 28 07:39:45 gladys systemd[1]: Stopped Snips Dialogue.
> Jan 28 07:39:45 gladys systemd[1]: Started Snips Dialogue.
> Jan 28 07:39:45 gladys snips-dialogue[27689]: ERROR:snips_dialogue: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:45 gladys snips-dialogue[27689]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:45 gladys snips-analytics[27687]: ERROR:snips_analytics: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:45 gladys snips-analytics[27687]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:45 gladys systemd[1]: snips-nlu.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:45 gladys systemd[1]: snips-nlu.service: Unit entered failed state.
> Jan 28 07:39:45 gladys systemd[1]: snips-nlu.service: Failed with result 'exit-code'.
> Jan 28 07:39:45 gladys systemd[1]: snips-hotword.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:45 gladys systemd[1]: snips-hotword.service: Unit entered failed state.
> Jan 28 07:39:45 gladys systemd[1]: snips-hotword.service: Failed with result 'exit-code'.
> Jan 28 07:39:45 gladys systemd[1]: snips-analytics.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:45 gladys systemd[1]: snips-analytics.service: Unit entered failed state.
> Jan 28 07:39:45 gladys systemd[1]: snips-analytics.service: Failed with result 'exit-code'.
> Jan 28 07:39:45 gladys systemd[1]: snips-dialogue.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:45 gladys systemd[1]: snips-dialogue.service: Unit entered failed state.
> Jan 28 07:39:45 gladys systemd[1]: snips-dialogue.service: Failed with result 'exit-code'.
> Jan 28 07:39:45 gladys snips-asr[27686]: ERROR:snips_asr: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:45 gladys snips-asr[27686]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:45 gladys systemd[1]: snips-asr.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:45 gladys systemd[1]: snips-asr.service: Unit entered failed state.
> Jan 28 07:39:45 gladys systemd[1]: snips-asr.service: Failed with result 'exit-code'.
> Jan 28 07:39:50 gladys systemd[1]: snips-nlu.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:50 gladys systemd[1]: snips-hotword.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:50 gladys systemd[1]: snips-dialogue.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:50 gladys systemd[1]: snips-asr.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:50 gladys systemd[1]: snips-analytics.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:50 gladys systemd[1]: Stopped Snips Analytics.
> Jan 28 07:39:50 gladys systemd[1]: Started Snips Analytics.
> Jan 28 07:39:50 gladys systemd[1]: Stopped Snips ASR.
> Jan 28 07:39:50 gladys systemd[1]: Started Snips ASR.
> Jan 28 07:39:50 gladys systemd[1]: Stopped Snips Dialogue.
> Jan 28 07:39:50 gladys systemd[1]: Started Snips Dialogue.
> Jan 28 07:39:50 gladys snips-analytics[27718]: ERROR:snips_analytics: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:50 gladys snips-analytics[27718]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:50 gladys systemd[1]: Stopped Snips Hotword.
> Jan 28 07:39:50 gladys systemd[1]: Started Snips Hotword.
> Jan 28 07:39:50 gladys snips-hotword[27721]: ERROR:snips_hotword: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:50 gladys snips-hotword[27721]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:50 gladys systemd[1]: Stopped Snips NLU.
> Jan 28 07:39:50 gladys snips-dialogue[27720]: ERROR:snips_dialogue: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:50 gladys snips-dialogue[27720]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:50 gladys systemd[1]: Started Snips NLU.
> Jan 28 07:39:50 gladys snips-nlu[27722]: ERROR:snips_nlu: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:50 gladys snips-nlu[27722]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:50 gladys systemd[1]: snips-analytics.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:50 gladys systemd[1]: snips-analytics.service: Unit entered failed state.
> Jan 28 07:39:50 gladys systemd[1]: snips-analytics.service: Failed with result 'exit-code'.
> Jan 28 07:39:50 gladys systemd[1]: snips-hotword.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:50 gladys systemd[1]: snips-hotword.service: Unit entered failed state.
> Jan 28 07:39:50 gladys systemd[1]: snips-hotword.service: Failed with result 'exit-code'.
> Jan 28 07:39:50 gladys systemd[1]: snips-nlu.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:50 gladys systemd[1]: snips-nlu.service: Unit entered failed state.
> Jan 28 07:39:50 gladys systemd[1]: snips-nlu.service: Failed with result 'exit-code'.
> Jan 28 07:39:50 gladys systemd[1]: snips-dialogue.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:50 gladys systemd[1]: snips-dialogue.service: Unit entered failed state.
> Jan 28 07:39:50 gladys systemd[1]: snips-dialogue.service: Failed with result 'exit-code'.
> Jan 28 07:39:50 gladys snips-asr[27719]: ERROR:snips_asr: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:50 gladys snips-asr[27719]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:50 gladys systemd[1]: snips-asr.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:50 gladys systemd[1]: snips-asr.service: Unit entered failed state.
> Jan 28 07:39:50 gladys systemd[1]: snips-asr.service: Failed with result 'exit-code'.
> Jan 28 07:39:53 gladys systemd[1]: Started Session c10 of user pi.
> Jan 28 07:39:55 gladys systemd[1]: snips-analytics.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:55 gladys systemd[1]: snips-hotword.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:55 gladys systemd[1]: snips-dialogue.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:55 gladys systemd[1]: snips-asr.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:55 gladys systemd[1]: snips-nlu.service: Service hold-off time over, scheduling restart.
> Jan 28 07:39:55 gladys systemd[1]: Stopped Snips NLU.
> Jan 28 07:39:55 gladys systemd[1]: Started Snips NLU.
> Jan 28 07:39:55 gladys systemd[1]: Stopped Snips ASR.
> Jan 28 07:39:55 gladys systemd[1]: Started Snips ASR.
> Jan 28 07:39:55 gladys systemd[1]: Stopped Snips Dialogue.
> Jan 28 07:39:55 gladys snips-dialogue[27777]: ERROR:snips_dialogue: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:55 gladys snips-dialogue[27777]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:55 gladys systemd[1]: Started Snips Dialogue.
> Jan 28 07:39:55 gladys snips-nlu[27775]: ERROR:snips_nlu: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:55 gladys snips-nlu[27775]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:55 gladys systemd[1]: Stopped Snips Hotword.
> Jan 28 07:39:55 gladys snips-analytics[27779]: ERROR:snips_analytics: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:55 gladys snips-analytics[27779]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:55 gladys systemd[1]: Started Snips Hotword.
> Jan 28 07:39:55 gladys systemd[1]: Stopped Snips Analytics.
> Jan 28 07:39:55 gladys systemd[1]: Started Snips Analytics.
> Jan 28 07:39:55 gladys snips-hotword[27778]: ERROR:snips_hotword: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:55 gladys snips-hotword[27778]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:55 gladys systemd[1]: snips-nlu.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:55 gladys systemd[1]: snips-nlu.service: Unit entered failed state.
> Jan 28 07:39:55 gladys systemd[1]: snips-nlu.service: Failed with result 'exit-code'.
> Jan 28 07:39:55 gladys systemd[1]: snips-dialogue.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:55 gladys systemd[1]: snips-dialogue.service: Unit entered failed state.
> Jan 28 07:39:55 gladys systemd[1]: snips-dialogue.service: Failed with result 'exit-code'.
> Jan 28 07:39:55 gladys snips-asr[27776]: ERROR:snips_asr: couldn't read assistant file at path "/usr/share/snips/assistant"
> Jan 28 07:39:55 gladys snips-asr[27776]:  -> caused by: No such file or directory (os error 2)
> Jan 28 07:39:55 gladys systemd[1]: snips-hotword.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:55 gladys systemd[1]: snips-hotword.service: Unit entered failed state.
> Jan 28 07:39:55 gladys systemd[1]: snips-hotword.service: Failed with result 'exit-code'.
> Jan 28 07:39:55 gladys systemd[1]: snips-analytics.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:55 gladys systemd[1]: snips-analytics.service: Unit entered failed state.
> Jan 28 07:39:55 gladys systemd[1]: snips-analytics.service: Failed with result 'exit-code'.
> Jan 28 07:39:55 gladys systemd[1]: snips-asr.service: Main process exited, code=exited, status=1/FAILURE
> Jan 28 07:39:55 gladys systemd[1]: snips-asr.service: Unit entered failed state.
> Jan 28 07:39:55 gladys systemd[1]: snips-asr.service: Failed with result 'exit-code'.

merci pour ton aide :slight_smile:


#174

je viens de voir que dans sam setup audio on peux choisir que Alsa, le problème c’est que que la ps3 eyes passe par Pulse Audio du coup il y a une solution ? ou ce n’est pas possible avec la ps3 eyes ?


#175

je me répond a moi même si sa peux aider quelle-qu 'un d’autre:

https://docs.snips.ai/articles/raspberrypi/pulseaudio


#176

Ton problème vient de la.

Vérifie dans le fichier /etc/snips.toml ce qui est indiqué et si le répertoire existe.


#177

j’ai refait la partie 3,4et5 de:

Quick Start Raspberry Pi

et tout fonctionne

sam status:

OS version … Raspbian GNU/Linux 9 (stretch)
Installed assistant … Gladys
Language … fr
Hotword … personal_hotword
ASR engine … snips
Status … Live

Service status:

snips-analytics … 0.60.10 (running)
snips-asr … 0.60.10 (running)
snips-audio-server … 0.60.10 (running)
snips-dialogue … 0.60.10 (running)
snips-hotword … 0.60.10 (running)
snips-nlu … 0.60.10 (running)
snips-skill-server … 0.60.10 (running)
snips-tts … 0.60.10 (running)

merci @Jean-Philippe et @Jean34 pour votre aide sa fonctionne parfaitement :smiley:


#178

par contre petite question snips ne comprend pas très biens se que je lui dit exemple:
quant je lui demande allume la lumière de l’entrée, elle comprend allume la Lumière rentré du coup sa fonctionne pas, il y a moyen de lui apprendre ?


#179

Salut @Razer,

est-ce que tu as bien installé snips-injection ?
regarde le post de @jojolll un peu plus haut, il avait le même souci que toi.

Snips peut apprendre via Gladys, notamment tes pièces, devices etc. Tu le vois dans la partie configuration du module : “Gérer les données connues par entités”.

Pour ma pars j’ai bien ri quand j’ai demandé à Gladys la première fois : “Allume le bandeau de LED de la cuisine” et que j’ai vu passer dans les logs : “Allume le bande de lait de la cuisine”, alors oui le lait est dans la cuisine mais bon… :smile:


#180

Salut @link39
Oui je l’ai bien installé, ce sont des mots ressemblants qu’il comprend mal du coup :confused:


#181

bonjour a tous,
je viens de regarder dans les logs quant je fait injecter sur gladys j’ai un problème:

> 0|gladys   | Sending 500 ("Server Error") response:
> 0|gladys   |  Error: ENOENT: no such file or directory, open '/home/pi/gladys/api/hooks/snips/cache/snips.slots.js'
> 0|gladys   |     at Object.fs.openSync (fs.js:646:18)
> 0|gladys   |     at Object.fs.readFileSync (fs.js:551:33)
> 0|gladys   |     at Object.getCachedSlots (/home/pi/gladys/api/hooks/gladys-snips/lib/snips.shared.js:51:44)
> 0|gladys   |     at Object.knownSlots (/home/pi/gladys/api/hooks/gladys-snips/lib/snips.inject.js:110:19)
> 0|gladys   |     at inject (/home/pi/gladys/api/hooks/gladys-snips/controller/SnipsController.js:23:15)
> 0|gladys   |     at routeTargetFnWrapper (/home/pi/gladys/node_modules/sails/lib/router/bind.js:181:5)
> 0|gladys   |     at callbacks (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:164:37)
> 0|gladys   |     at param (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:138:11)
> 0|gladys   |     at pass (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:145:5)
> 0|gladys   |     at nextRoute (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:100:7)
> 0|gladys   |     at callbacks (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:167:11)
> 0|gladys   |     at _sendHeaders (/home/pi/gladys/node_modules/sails/lib/hooks/cors/to-prepare-send-headers.js:91:7)
> 0|gladys   |     at routeTargetFnWrapper (/home/pi/gladys/node_modules/sails/lib/router/bind.js:181:5)
> 0|gladys   |     at callbacks (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:164:37)
> 0|gladys   |     at param (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:138:11)
> 0|gladys   |     at pass (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:145:5)
> 0|gladys   |     at nextRoute (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:100:7)
> 0|gladys   |     at callbacks (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:167:11)
> 0|gladys   |     at sails.router.bind._middlewareType (/home/pi/gladys/node_modules/sails/lib/hooks/csrf/index.js:148:11)
> 0|gladys   |     at routeTargetFnWrapper (/home/pi/gladys/node_modules/sails/lib/router/bind.js:181:5)
> 0|gladys   |     at callbacks (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:164:37)
> 0|gladys   |     at param (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:138:11)
> 0|gladys   |     at pass (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:145:5)
> 0|gladys   |     at nextRoute (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:100:7)
> 0|gladys   |     at callbacks (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:167:11)
> 0|gladys   |     at _addResViewMethod (/home/pi/gladys/node_modules/sails/lib/hooks/views/res.view.js:372:3)
> 0|gladys   |     at routeTargetFnWrapper (/home/pi/gladys/node_modules/sails/lib/router/bind.js:181:5)
> 0|gladys   |     at callbacks (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:164:37)
> 0|gladys   |     at param (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:138:11)
> 0|gladys   |     at pass (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:145:5)
> 0|gladys   |     at nextRoute (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:100:7)
> 0|gladys   |     at callbacks (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:167:11)
> 0|gladys   |     at Object.module.exports [as checktoken] (/home/pi/gladys/api/policies/checkToken.js:4:12)
> 0|gladys   |     at put /snips/inject (/home/pi/gladys/api/hooks/gladys-snips/index.js:24:98)
> 0|gladys   |     at routeTargetFnWrapper (/home/pi/gladys/node_modules/sails/lib/router/bind.js:181:5)
> 0|gladys   |     at callbacks (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:164:37)
> 0|gladys   |     at param (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:138:11)
> 0|gladys   |     at pass (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:145:5)
> 0|gladys   |     at nextRoute (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:100:7)
> 0|gladys   |     at callbacks (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:167:11)
> 0|gladys   | Server Error:
> 0|gladys   | Error: ENOENT: no such file or directory, open '/home/pi/gladys/api/hooks/snips/cache/snips.slots.js'
> 0|gladys   |     at Object.fs.openSync (fs.js:646:18)
> 0|gladys   |     at Object.fs.readFileSync (fs.js:551:33)
> 0|gladys   |     at Object.getCachedSlots (/home/pi/gladys/api/hooks/gladys-snips/lib/snips.shared.js:51:44)
> 0|gladys   |     at Object.knownSlots (/home/pi/gladys/api/hooks/gladys-snips/lib/snips.inject.js:110:19)
> 0|gladys   |     at inject (/home/pi/gladys/api/hooks/gladys-snips/controller/SnipsController.js:23:15)
> 0|gladys   |     at routeTargetFnWrapper (/home/pi/gladys/node_modules/sails/lib/router/bind.js:181:5)
> 0|gladys   |     at callbacks (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:164:37)
> 0|gladys   |     at param (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:138:11)
> 0|gladys   |     at pass (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:145:5)
> 0|gladys   |     at nextRoute (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:100:7)
> 0|gladys   |     at callbacks (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:167:11)
> 0|gladys   |     at _sendHeaders (/home/pi/gladys/node_modules/sails/lib/hooks/cors/to-prepare-send-headers.js:91:7)
> 0|gladys   |     at routeTargetFnWrapper (/home/pi/gladys/node_modules/sails/lib/router/bind.js:181:5)
> 0|gladys   |     at callbacks (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:164:37)
> 0|gladys   |     at param (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:138:11)
> 0|gladys   |     at pass (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:145:5)
> 0|gladys   |     at nextRoute (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:100:7)
> 0|gladys   |     at callbacks (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:167:11)
> 0|gladys   |     at sails.router.bind._middlewareType (/home/pi/gladys/node_modules/sails/lib/hooks/csrf/index.js:148:11)
> 0|gladys   |     at routeTargetFnWrapper (/home/pi/gladys/node_modules/sails/lib/router/bind.js:181:5)
> 0|gladys   |     at callbacks (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:164:37)
> 0|gladys   |     at param (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:138:11)
> 0|gladys   |     at pass (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:145:5)
> 0|gladys   |     at nextRoute (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:100:7)
> 0|gladys   |     at callbacks (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:167:11)
> 0|gladys   |     at _addResViewMethod (/home/pi/gladys/node_modules/sails/lib/hooks/views/res.view.js:372:3)
> 0|gladys   |     at routeTargetFnWrapper (/home/pi/gladys/node_modules/sails/lib/router/bind.js:181:5)
> 0|gladys   |     at callbacks (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:164:37)
> 0|gladys   |     at param (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:138:11)
> 0|gladys   |     at pass (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:145:5)
> 0|gladys   |     at nextRoute (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:100:7)
> 0|gladys   |     at callbacks (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:167:11)
> 0|gladys   |     at Object.module.exports [as checktoken] (/home/pi/gladys/api/policies/checkToken.js:4:12)
> 0|gladys   |     at put /snips/inject (/home/pi/gladys/api/hooks/gladys-snips/index.js:24:98)
> 0|gladys   |     at routeTargetFnWrapper (/home/pi/gladys/node_modules/sails/lib/router/bind.js:181:5)
> 0|gladys   |     at callbacks (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:164:37)
> 0|gladys   |     at param (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:138:11)
> 0|gladys   |     at pass (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:145:5)
> 0|gladys   |     at nextRoute (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:100:7)
> 0|gladys   |     at callbacks (/home/pi/gladys/node_modules/@sailshq/express/lib/router/index.js:167:11)

j’ai bien installé snips-injection


#182

Peux-tu lancer cela dans un script :

gladys.modules.snips.setup()