Rhasspy - Offline voice control step by step (Server/Client) - Docker

I think that is a current defect in Rhasspy, but indeed you can edit the profile.json as well

I see you use it with Node-RED. I use Node-RED for my automations but for Snips I used intent scripts in HA.

Now I’m quite unsure if I will go on combining Rhasspy with HA intent scripts or Node-RED. Any thoughts on this? Ups / downs you can tell me about?

Just for an example to reference… here is my simple example… controlling a robo-vac.
I use a websocket in to listen for Rhasspy commands.
Then I use switch node to separate the different intents.
After that I have a change node because in the case of the vacuum, rooms are #'s in the program, not the names.
The last two steps setup the payload and send it to HA to call the required service.

Using the replace node is a good idea and also works for me. However I think it is an overkill. Should be easier to use Synonyms in the slot, which can give you the desired output, no matter which word is detected:

Slot Synonyms

Slot values are themselves sentence templates! So you can use all of the familiar syntax from above. Slot “synonyms” can be created simply using substitutions. So a file named slots/rooms may contain:

[the:] (den | playroom | downstairs):den

which is referenced by $rooms and will match:

  • the den
  • den
  • the playroom
  • playroom
  • the downstairs
  • downstairs

This will always output just “den” because [the:] optionally matches “the” and then drops the word.

https://rhasspy.readthedocs.io/en/latest/training/#slot-synonyms

I also had to change the light text node from the OP to this to get it working:

{
  "domain": "light",
  "service": "turn_{{slots.state}}",
  "data": {
    "entity_id": "light.{{slots.name}}"
  }
}

as entity_id wasn’t recognized when using the one from the original post (without data:).

Thanks for this step by step guide, I’m getting close to this working but have hit a bit of a road bump. I get through to the end of the client set side set up, but my http connection is getting denied.

Any pointers on debugging this part?

Thanks.

Hi
I would like to try rhasspy
Everything works fine except step 12, the container keep on restarting again and again.
Can someone help me ? I juste change --profiles en to --profiles fr

well the step 12 is the most important step :slight_smile: have you checked the docker logs to check what errors you get? try docker logs -f *container*

Rhasspy 2.5 has been released and is now hosted on a different account.
I would use the “read the docs” and follow the installation instructions from there.

https://rhasspy.readthedocs.io/en/latest/installation/

Good Luck!
DeadEnd

Thanks @manju-rn and @DeadEnd. It works by following the raspberry pi0 tutorial.