element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Project14
  • Challenges & Projects
  • More
Project14
Blog MATRIX Voice and MATRIX Creator Running Snips.ai
  • Blog
  • Forum
  • Documents
  • Theme Suggestions
  • Polls
  • Members
  • More
  • Cancel
  • New
Join Project14 to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: matrixlabs
  • Date Created: 5 Jun 2019 9:35 PM Date Created
  • Views 1419 views
  • Likes 3 likes
  • Comments 0 comments
  • matrix voice
  • hardware
  • matrix labs
  • matrix-creator
  • voice assistance
  • voice control
Related
Recommended

MATRIX Voice and MATRIX Creator Running Snips.ai

matrixlabs
matrixlabs
5 Jun 2019

Learn how to install the Snips.ai offline voice assistant, through the SAM CLI tool, for the MATRIX Creator and MATRIX Voice.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Required Hardware

Before getting started, let's review what you'll need.

  • Raspberry Pi 3 (Recommended) or Pi 2 Model B (Supported).
  • MATRIX Voice or MATRIX Creator - Raspberry Pi does not have a built-in microphone, the MATRIX Voice & MATRIXCreator each have an 8 mic array - Buy MATRIX Voice or Buy MATRIX Creator.
  • Micro-USB power adapter for Raspberry Pi.
  • Micro SD Card (Minimum 8 GB) - An operating system is required to get started. You can download Raspbian Stretch and use the guides for Mac OS, Linux and Windows in the Raspberry Pi website.
  • External Speaker with 3.5 mm audio cable.
  • A USB Keyboard & Mouse, and an external HDMI Monitor - we also recommend having a USB keyboard and mouse as well as an HDMI monitor handy. You can also use the Raspberry Pi remotely, see this guide from Google.
  • Internet connection (Ethernet or WiFi)
  • (Optional) WiFi Wireless Adapter for Pi 2. Note: Pi 3 has built-in WiFi.

 

Let's Get Started

If you haven't already, be sure to setup your Raspberry Pi with your MATRIX Device.

  • MATRIX Creator Setup
  • MATRIX Voice Setup

Once setup, ensure you enable SSH on your Raspberry Pi. This allows the SAM CLI tool to connect to your Pi.

1. Installing the MATRIX Kernel Modules (Raspberry Pi)

Run the following commands in your Raspberry Pi's terminal to add the MATRIX repository & key and update your repository packages.

curl https://apt.matrix.one/doc/apt-key.gpg | sudo apt-key add - 
echo "deb https://apt.matrix.one/raspbian $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/matrixlabs.list
sudo apt-get update
sudo apt-get upgrade

 

Reboot your device.

sudo reboot

 

Install the MATRIX Kernel modules. Aside from a few other changes, this allows the microphones on your MATRIX device to register as an ALSA microphone on your Raspberry Pi.

sudo apt install matrixio-kernel-modules

 

You will then need to reboot a second time.

sudo reboot

 

These next commands will test your microphones by raising your output volume, creating a 5 second long audio recording, and then playing that recording.

Make sure you have a device that can output audio plugged into your Raspberry Pi's HDMI or Audio Jack.

mixer set PCM 100% && arecord recording.wav -f S16_LE -r 16000 -d 5 && aplay recording.wav

 

2. Installing the SAM CLI Tool (Personal Computer)

On your personal computer, you will be using the SAM CLI tool to create, manage and deploy your Snips assistants, to configure your hardware, to view the logs of your assistants on the Raspberry, as well as to run your application locally for quick prototyping.

On your personal computer, you'll need to install Node.js as a prerequisite. Once installed, you can install SAM into your computer with the following command.

macOS / Linux

sudo npm install -g snips-sam

 

Windows

Right click your Command Prompt and click "Run As Administrator", before running the command below.

npm install -g snips-sam

 

3.Installing Snips.ai Through SAM (Personal Computer)

Although the installation will be on your Raspberry Pi, Snips will be installed through the SAM CLI tool from your personal computer. Open your personal computer's terminal and input the following commands.

This command should log all of the Raspberry Pis on your network with their IP address and hostname. If no devices are shown, you can follow this guide as an alternative for obtaining your Pi's IP address.

sam devices

 

Connect to your Raspberry Pi through one of the following:

  • Using your Pi's hostname.

sam connect raspberrypi.local

 

  • Or your Pi's IP address.

sam connect 192.168.1.182

 

You'll then be prompted to insert a username and password. The default login is as follows:

  • Username: pi
  • password: raspberry

After you're connected use the init command, from your personal computer, to install Snips onto your Raspberry Pi.

sam init

4. Configuring Snips.ai (Raspberry Pi)

With Snips.ai properly installed, the next step is to edit the snips.toml file for configuring the mics.

On your Raspberry Pi's terminal, run the following:

sudo nano /etc/snips.toml

 

Scroll down to where you see [snips-audio-server] and replace

# mike = "Built-in Microphone"

with the following:

mike = "MATRIXIO-SOUND: - (hw:2,0)"

Press ctrl+x, press y, and then press the enter key to save your changes.

image

   Snips.ai Microphone Configuration

5. Testing Snips.ai (Personal Computer)

Through your personal computer's terminal, you can use SAM to test the speaker and microphone of your Raspberry Pi.

  • Testing your Raspberry Pi's speakers

sam test speaker

  • Testing the microphones on your MATRIX device

sam test microphone

If both commands seem to work, you've properly configured Snips.ai on your Raspberry Pi!

This final command will test if Snips.ai is properly working by installing a demo assistant for the weather.

sam install demo

Once installed, test the assistant by saying

"Hey Snips!"

"What will the weather be like in Madagascar in two days?"

The response from Snips should be:

"You asked for the weather in Madagascar in two days."

6. Next Steps

You can now follow the Snips.ai guide with your now configured Raspberry Pi and MATRIX device.

Use the link below to start from where this guide left off:

https://snips.gitbook.io/getting-started/install-a-demo-assistant

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube