Before starting the set up of MATRIX Voice Google Assistant it would be good if you know a little bit about the components and boards used in this project. You can either read it or just start the tutorial section. Let us get familiarized.
Raspberry Pi
Raspberry Pi is small credit card sized, light weight and compact computer available which is used by both professions, hobbyist and of course hackers alike. This mini computer can do (almost) any thing a normal linux machine can do. It is widely used in various industries, robotics, home automation projects.
MATRIX Voice
This little development board consist of a radial array of 8 MEMS microphones, 18 RGBW LED’s and 64 GPIO pins, which is linked to a Xilinx Spartan6 FPGA and 64 Mbit SDRAM. This provides the hobbyists and developers a wonderful opportunity to add custom voice and hardware-accelerated machine learning technology In no time.
An advanced version of this MATRIX Voice is also available employing a ESP32 Wi-Fi / BT chipset which will enable users to easily connect to the network or other devices via WiFi and Bluetooth in no time.
MATRIX Voice Google Assistant Tutorial
Step 1 : Setting Up Raspberry Pi
Download and burn latest Raspbian image to a micro SD card and insert it into the raspberry Pi.
Now power it up with a power adapter that can provide at least 2.5 Ampere. Now fire up your terminal and create a password for the user ‘pi’ by executing the command
sudo passwd pi
Connect your Raspberry Pi to a WiFi router or Wired network and make sure it is connected by checking whether it is getting an IP address from the switch.
Now perform and update and upgrade by running
sudo apt update -y
sudo apt upgrade -y
Step 2 : Adding the Repositories
In order to set up Google Assistant in your MATRIX Voice, you should start by installing the right tools. First we will install the MATRIX Software by adding the right repositories. Enter the below commands to install MATRIX Software
Once this step is complete, you should do a reboot for effects to take place.
sudo reboot
Now you can install kernel modules by running
sudo apt install matrixio-kernel-modules
Reboot the Pi
sudo reboot
Step 4 : Create a Google Developer Project
Now use your google account to create a Google Developer project. This step will give your device access to the Google Assistant API.
You can do this by following the below steps
Create a new project,Give your project a project name in the Project name box and click on CREATE PROJECT.
Now you have your project ready. Next thing to do is enabling the API. Go to the Cloud Platform Console and Enable the Google Assistant API in the project you just created.Click Enable.
For proper working of our Google Assistant, you should share some activity data with Google. To do that, open the Activity Controls page from the account that is linked with google assistant.
Enable the Following Switches
Web & App Activity
Include Chrome browsing history and activity from websites and apps that use Google services checkbox.
Device Information
Voice & Audio Activity
Step 5 : Register the Device
Go to Actions Console and select the project you created on the upper part of the screen.
From the left navigation bar, click on the Connected properties.
Click on the DEVICE MODELS tab and Click on the REGISTER MODEL button.
Fill up all the information and Click REGISTER MODEL. when you are finished
Download credentials.json file to your computer and place it in your Raspberry Pi in which MATRIX Voice Google Assistant will be running.
It is recomended not to rename this file and keep it under /home/pi folder.
Download this file and transfer it to the device. Click NEXT.
Step 6 : Installing the SDK
Before installing the SDK, it will be a smarter move to isolate system packages from packages that we are about to install. For that, we will set up a virtual environment for us to tinker with.
Note: Run these codes from /home/pi directory otherwise it wont work.
Setup Python Virtyual Environment using the following commands
Now its time to generate the credentials which we be using to run our Generate credentials to be able to run our MATRIX Voice Google Assistant. Run the below command.
If everything is done correctly, you should see a URL displayed in the terminal some what like this:
Please visit this URL to authorize this application: https://...
Enter the authorization code:
Now all you have to do is copy the entire URL, open up a browser and paste the URL in the address bar and hit enter. It will ask you to login to the Google Account that is linked with the developer project and as you for your approval.
Once you approve the request, you will be provided with a Key. Copy the key and Paste it in the Terminal. If everything went well, you should see something like this in the Terminal.
MATRIX labs have customized code that allows us to integrate MATRIX Everloop with Google Assistant. Clone the Repository using the below command[AdSense-C]
Now you can interact with your MATRIX Voice Google Assistant.
Try asking the usual question –
Hey Google, Whats the time now?
Hey Google, How is the weather outside?
If you have any doubts, please feel free to open a topic and ask it in our forum.[Rate the ProjectDid you find this page useful? Help us to improve by rating this page.
[RICH_REVIEWS_FORM]
[RICH_REVIEWS_SNIPPET stars_only=”true”]
AdSense-B]
2017 was a year of great advancements in digital world. So many new inventions, protocols. On the other hand, there were so many cyber attacks based on Computer Wireless Networks. Some of the best WiFi manufacturers responded very fast and made the patch available for all their devices. Based on several surveys, we have collected…
In the previous post, we showed you how to setup Amazon Alexa using MATRIX Voice / Creator on Raspberry Pi. All it can do is talk to us and do some some basic stuffs. What if we could control the lights in our home using Alexa? Or control the room temperature? Or open the gate?…
Kali Linux is the best penetration testing OS of all time. In April 2017, Kali Linux 2017 . 1 rolling was released which came up with a so many updates and features which include support for some new Wireless Card Injection, support for CUDA GPU and Amazon AWS and of course Microsoft Azure Availability. Two months…
Raspberry Pi is small credit card sized, light weight and compact computer available which is used by both professions, hobbyist and of course hackers alike. Two years ago, Raspberry Pi 3 Model B was released which was the first 64-bit member of the pi family, and our first member with inbuilt WiFi and Bluetooth connectivity….
Here we will setup speech detection using Pocketsphinx on your Raspberry Pi with MATRIX Voice. PocketSphinx is an easy to use speech recognition engine, mainly focused on IOT and mobile devices. PocketSphinx is actually a library that works hand in hand with another library ‘SphinxBase’ which provides common functionality across all CMUSphinx projects. To setup…
In the previous post we showed you how to create a home automation system using MATRIX Alexa. Now we have decided to take it to the next level. He tinkered around with the code and made a Robot that can be controlled via MATRIX Alexa; A Matrix Voice Alexa Robot – A four wheeled robot…