Press ESC to close

How To Add Alexa To Your Smart Mirror

If you would desire to set up Google Assistant, Google proposes a whole tutorial for connecting Assistant on a Raspberry Pi, including the steps, photos, and download links. Whereas a little Magic Mirror units for Google Assistant exist, our analysis exposed the modules to be difficult, frequently crashing or covering its mirror news. If you desire the greatest upfront set up, we advocate and enhancing the Google AIY kit and consuming its specific tutorial. Check out the step to Add Alexa To Your Smart Mirror.

Related:

 

In other to install most modules, you’ll go through some basic steps:

  1. Download its module code from GitHub
  2. And configure module-specific options
  3. Then add the module to the mirror configuration

Depending on its module, steps 2 and 3 may be extra or less concerned. Setting up the Alexa obliges more configuration than enhancing snowflakes, for request. Moreover, this specific Alexa module needs installing approximately extra software (dependencies) before downloading the module.

This guide supposes you’ve previously-created a Smart Mirror. If you haven’t, begin there but just keep it in your brain the extra materials listed here in your charges and space thoughts.

  • Ended Smart Mirror
  • Microphone
  • Speaker

For the microphone and speaker, we advocate its initial Google AIY Voice Kit. At $16, you are going to hard-pressed in other to find a cheaper microphone and speaker arrangement. You don’t manifestly need to use the built-in cardboard box; it could be more effective to leave the constituents out and run the microphone and speaker outside the mirror.

YouTube video

A second version of the Google AIY Voice Kit is obtainable, but it’s more luxurious and comprises a Raspberry Pi Zero, that isn’t powerful adequate to run awaken words or the Magic Mirror software, so you ought to skip it.

Attach your speaker and microphone, and then you’re set and ready to install the Alexa module. If you’re making use of the Google AIY kit, just follow its assembly guide to attach the microphone and speaker components.

Installing Module Dependencies

Before you can download and arrange mmm-awesome-Alexa, you essentially need to install limited dependencies the module trusts on. It’s continually a good idea to update your Raspberry Pi before straining to install anything else. On your Raspberry Pi, start by running this authority:

sudo apt update & Sudo apt upgrade

After your Raspberry Pi is up to date, run the following the commands one after the other:

sudo apt-get install sox libsox-fmt-all

sudo apt-get install swig3.0 python-pyaudio python3-pyaudio sox

pip install pyaudio

sudo apt-get install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0 ffmpeg libav-tools

sudo apt-get install libatlas-base-dev

Each command installs a colony, and they’re all essential to run. Just run a command, wait for the download and install to finish, and run the next command.

Downloading the Module Code

The first step in adding any module for its Magic Mirror is to download the module’s code Github. In other to do this, you’ll have to log into the Raspberry Pi, open station, and then change directory to where modules are saved. Then you’ll use a download command to pull the code from Github if you have shell access, you can do all of this remotely.

Once you have a station open, type the following:

cd ~/MagicMirror/modules

This alertness moves you to the operating directory of its modules folder for the Magic Mirror software. Anytime you download the latest module, you’ll want to be here to keep everything methodical. The next step is to download the software from Github with this command:

git clone https://github.com/dolanmiu/MMM-awesome-alexa.git

When it finishes, change directories into the module with the following command:

cd MMM-awesome-alexa

The Alexa module needs little additional dependencies to work properly. Run this command to install them:

npm install --only=prod

Now, change directories into the newly created node_modules folder:

cd node_modules

Delete the snow boy folder the previous commands added. We need a newer version of a snow boy:

rm -rf snowboy

Next, we’ll download the latest version of a snow boy with the following command:

git clone https://github.com/Kitt-AI/snowboy.git

Before we continue, change directory to the new snow boy folder.

cd snowboy

Now we need to remove the node modules folder and install some additional dependencies. It’s important that you stay inside the snow boy folder for these steps; don’t change directories. Run the following commands one by one:

rm -rf node_modules

npm install nan --save

npm install [email protected] --save

npm install

npm run prepublish

npm install --save-dev electron-rebuild

npm install nan

./node_modules/.bin/electron-rebuild

Now the module is fully downloaded and installed and you have Added Alexa To Your Smart Mirror.

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this.
Loading...

James T.

James, a distinguished alumnus of MIT, where he specialized in Computer Science and Communications Technology, has an impressive academic foundation that underpins his expertise. With over a decade in the industry, he deciphers complex technology into easy how-tos. Known for his keen insights, James is dedicated to helping readers navigate the rapidly evolving digital landscape.

Leave a Reply

Your email address will not be published. Required fields are marked *