Installing SNIPS on a Raspberry Pi 3b+

  • We burn Raspbian with Win32 Disk Imager
  • Adds a ssh file to the root of the SD card
  • We disconnect the SD card from the PC and put it in the Raspberry
  • We let the Raspberry run until it connects to the local network, we see it through the router, a new DHCP client has appeared.
  • Connect to the Raspberry with PuTTY
  • We linger in pi/raspberry
  • We launch sudo raspi-config to change the password of pi, to configure the SSH access, the locals, the hostname (putting snips) and to extend Filesystem, it reboot
  • We reconnect with pi/new password
  • We go to root:

sudo su -

  • We're going to install NPM :

curl -sL https://deb.nodesource.com/setup_11.x | bash -

apt-get install -y nodejs

  • We will install SAM:

sudo npm install -g snips-sam

  • We're going to install Snips :

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

If pgp.mit.edu is down, use:

sudo apt-key adv --keyserver pgp.surfnet.nl --recv-keys D4F50CDCA10A2849

or

sudo apt-key adv --keyserver gpg.mozilla.org --recv-keys D4F50CDCA10A2849

 

sam connect snips (or sam connect localhost)

By being connected do

Sam Init

We can test a

sam status

But a lot of things are in red, which is normal.

We will configure the sound:

sam setup audio

Set Y to "Is it a Snips Makers Kit"

  • It's gonna reboot.

sam connect

Sam test speaker

  • The speaker must speak
  • We'll test the microphone.

Sam Test Microphone

 

  • If this does not work, you must:

sam setup audio

  • Put N to the question
  • Choose the speaker of the extension card (1) and validate
  • We will log in (you must have a Snips login/password)

sam login

  • Login
  • The wizard shall be installed:

Sam install assistant

  •  Answer questions with default values

Sam watch