Sponsor Link
This Project is Sponsored by UTSource. UTSource is a professional electronic components supplier.Click Here to know more about MATRIX Voice and what it can do.
MATRIX Voice Alexa
Components Needed
- MATRIX Voice
- Raspberry Pi 3 (Click to Purchase)
- USB Speaker (Click to Purchase)
- Micro SD Card (Click to Purchase)
- Active Internet Connection
Steps
Step 1 : Setting Up Raspberry Pi
Download and burn latest Raspbian image to a micro SD card and insert it into the raspberry Pi.[AdSense-C] 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 commandsudo passwd piConnect 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 sudo apt install npm oracle-java8-jdk
Step 2 : Set Up a Developer Account in Amazon
Now go ahead and create a free developer account at developer.amazon.com.Security Profile
In this page we will create a new Login with Amazon (LWA) security profile.- http://localhost:3000
- https://localhost:3000
- http://localhost:3000/authresponse
- https://localhost:3000/authresponse
Step 3 – Installing MATRIX Voice Software
First add the repository and do an update by running the below commands. [AdSense-C]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 update sudo apt upgradeNow install the Matrix software
sudo apt install matrixio-malos libmatrixio-creator-hal-devNow reboot the Pi
sudo reboot
Step 4 – Setting Up Alexa Sample App
Clone the sample app from github and install it using the automated install script.cd /home/pi/Desktop git clone https://github.com/matrix-io/alexa-avs-sample-app.git cd alexa-avs-sample-app ./automated_install.sh
Running MATRIX Voice Alexa
MATRIX Voice Alexa is now completely set up. Now open up 3 Terminals in your PiTerminal 1
cd ~/Desktop/alexa-avs-sample-app/samples cd companionService && npm start
Terminal 2
cd ~/Desktop/alexa-avs-sample-app/samples cd companionService && npm startThis will open up a new browser window and you will be asked to login using your amazon credentials. You’ll be taken to a Dev Authorization page, confirming that you’d like your device to access the Security Profile created earlier.
Terminal 3
cd ~/Desktop/alexa-avs-sample-app/samples cd wakeWordAgent/src && ./wakeWordAgent -e sensoryNow you can interact with your MATRIX Voice Alexa. Try asking the usual question – Alexa, Whats the time now? Alexa, How many Kilometers from Washington DC to Miami beach?[AdSense-B] If you have any doubts, please feel free to open a topic and ask it in our forum. Rate the Project Did you find this page useful? Help us to improve by rating this page.
hi, this helps me a lot!!!
still i gotta ask a single question.
in the progress of opening 3 terminals and typing the codes in the article, codes going in terminal 1 and terminal 2 looks exact same to me… and when I really type it with my raspberry pi, it says port 3000 already used(terminal 2). Do you know why this happens?