From 7494352689bfaa080f88c7d852cf7a5d14566335 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 11 May 2019 18:51:49 +0200 Subject: [PATCH] Those are commands --- source/_components/snips.markdown | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/source/_components/snips.markdown b/source/_components/snips.markdown index 443da5dec64..60dc41ef5b8 100644 --- a/source/_components/snips.markdown +++ b/source/_components/snips.markdown @@ -30,18 +30,18 @@ Snips takes voice or text as input and produces *intents* as output, which are e The Snips platform can be installed via the Snips APT/Debian repository. ```bash -sudo apt-get update -sudo apt-get install -y dirmngr -sudo bash -c 'echo "deb https://raspbian.snips.ai/$(lsb_release -cs) stable main" > /etc/apt/sources.list.d/snips.list' -sudo apt-key adv --keyserver pgp.mit.edu --recv-keys D4F50CDCA10A2849 -sudo apt-get update -sudo apt-get install -y snips-platform-voice +$ sudo apt-get update +$ sudo apt-get install -y dirmngr +$ sudo bash -c 'echo "deb https://raspbian.snips.ai/$(lsb_release -cs) stable main" > /etc/apt/sources.list.d/snips.list' +$ sudo apt-key adv --keyserver pgp.mit.edu --recv-keys D4F50CDCA10A2849 +$ sudo apt-get update +$ sudo apt-get install -y snips-platform-voice ``` Note that if the keyserver pgp.mit.edu is down then try to use another one in the 4th line, like pgp.surfnet.nl: ```bash -sudo apt-key adv --keyserver pgp.surfnet.nl --recv-keys D4F50CDCA10A2849 +$ sudo apt-key adv --keyserver pgp.surfnet.nl --recv-keys D4F50CDCA10A2849 ``` ### {% linkable_title Creating an assistant %} @@ -51,13 +51,13 @@ Head over to the [Snips Console](https://console.snips.ai) to create your assist The next step is to get the assistant to work on your device. Unzip and copy the `assistant` folder that you downloaded from the web console to the path. Assuming your downloaded `assistant` folder is on your desktop, just run: ```bash -scp -r ~/Desktop/assistant pi@:/home/pi/. +$ scp -r ~/Desktop/assistant pi@:/home/pi/. ``` Now ssh into your Raspberry Pi: ```bash -ssh pi@ +$ ssh pi@ ``` By default, this command is `ssh pi@raspberrypi.local`, if you are using the default Raspberry Pi hostname. @@ -82,7 +82,7 @@ Make sure that a microphone is plugged to the Raspberry Pi. If you are having tr Start the Snips Voice Platform by starting the `snips-*` services: ```bash -sudo systemctl start "snips-*" +$ sudo systemctl start "snips-*" ``` Snips is now ready to take voice commands from the microphone. To trigger the listening, simply say