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.
- How to download iTunes for Windows 10
- 7 Best places to find free Audiobooks To Read
- How to download music from YouTube to iPhone
- 5 Best Jailbreak apps for iPhone 6 and iPhone 6 Plus
- How to download videos from YouTube to iPhone
- NetFlix App Not Compatible With iPad: Fix It
In other to install most modules, you’ll go through some basic steps:
- Download its module code from GitHub
- And configure module-specific options
- 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
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.
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:
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:
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:
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.
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 run prepublish
npm install --save-dev electron-rebuild
npm install nan
Now the module is fully downloaded and installed and you have Added Alexa To Your Smart Mirror.