The installation process of your assistant is slightly different if you choose to use Sam or not. Here the two different process:
First you need login to the console with your credentials:
$ sam loginEnter email used on the console: firstname.lastname@example.orgEnter password used on the console: [hidden]
Then, you can install an assistant created with your account:
$ sam install assistantFetching assistants doneChoose the assistant you wish to install on the device (Use arrow keys)❯ Weather AssistantLabs
It will then deploy the assistant to your device and install all the actions you created.
Alternatively, you can use the id of your assistant to download it directly. You can find this id in the URL when you're connected to the console and on the assistant page, it looks like proj_xxxxx
$ sam install assistant -i proj_xxxxxDownloading assistantFetching assistants doneNLU training doneASR training done✔ Deploying assistant to raspberrypi.local...Checking for skillsi No skill found✔ Snips assistant is now running. Say hey_snips to start!i Run sam watch to see the logs
You can also upload the file directly
$ sam install assistant -p <assistant_path>
Once you have the assistant installed, you can show the logs and test your assistant with:
$ sam watch
To exit, type
CTRL + C
The default wake word is “hey Snips!”. The wake word is what allows triggering the device to have it listen to the command.
Say “hey Snips!” and then “Switch on the lights in the garage” You should hear “Turning on the lights in : garage” on your speaker.
Download your assistant from the console.
Smart House Assistant, click on
Deploy Assistant (at the bottom right of the page). It will pop up a modal to deploy with SAM. Click on “download and install your assistant manually” to download your Assistant’s folder.
Copy the folder on your Raspberry Pi
$ scp <path-to-assistant.zip> pi@<pi-name>.local:~
Connect to your Pi in SSH
$ ssh pi@<pi-name>.local
Delete the previous assistant if there is one.
$ sudo rm -rf /usr/share/snips/assistant/
Unzip your new assistant in the right Pi’s folder
$ sudo unzip <assistant.zip> -d /usr/share/snips/
The assistant is now installed, let’s relaunch the different snips components:
$ sudo systemctl restart 'snips-*'
If you also have actions in your assistant, you'll need to Deploy your apps manually.