Raspberry Pi: build Amazon Echo yourself - how it works
This practical tip shows how you can easily build your own Amazon Echo with a Raspberry Pi. In addition to the Raspberry Pi, you only need a few components and our instructions.
Build Amazon Echo with Raspberry Pi - the components
Building an Amazon Echo yourself is not that difficult. You only need a few components for this:
- First of all, of course, you need a Raspberry Pi.
- You also need a USB microphone so that the Echo can hear you later.
- Furthermore, you should also get a speaker that you can later connect to the Raspberry Pi using a jack cable.
Shop recommendation for Raspberry Pi Foundation Raspberry Pi 3 Model B
€ 33.46
To the shop
€ 33.47
To the shop
€ 35.00
To the shop
Offered by BestCheck.de | Prices include VAT plus shipping
Compare other offers
For the Echo: Set up an Amazon developer account
First you need to set up an Amazon developer account and register your Raspberry Pi:
- First, you need to create an Amazon Developer account on the Amazon Developer website. If you already have a normal Amazon account, log in here. You may have to fill out a few forms here and accept data protection declarations and terms of use.
- Then click on the "Alexa" tab and on "Alexa Voice Service" on "Get Started". Click here on "Register a Product" on the small arrow and select "Device".
- Now enter a "Device Type ID" and a "Display Name". In our case we used "my_device" as "Device Type ID" and "My Device" as "Display Name". Then click on "Next".
- Select "Create a new profile" under "Security Profile" and enter "Alexa Voice Service Sample App Security Profile" as "Security Profile Name" and "Alexa Voice Service Sample App Security Profile Description" as "Security Profile Description",
- After clicking "Next" again, click on the "Websettings" tab and enter "// localhost: 3000" under "Allowed Origins" and "// localhost: 3000 / authresponse" under "Allowed Return URLs" on. Finally click "Next" again, give the project a description and an icon and click "Submit".
- Now go to this page, select your newly created Security Profile from the dropdown menu and click on "Confirm". Enter »//example.com« as the URL and click on "Save". Finally, click on "Show Client ID and Client Secret" and write down these values.
Prepare Raspberry Pi
- First enter the "cd Desktop" command in the terminal to switch to the desktop.
- Then copy the Alexa software with the command »git clone //github.com/alexa/alexa-avs-sample-app.git«.
- Now change to the folder just created with the command »cd ~ / Desktop / alexa-avs-sample-app« and edit the configuration file of the installer with the command »nano automated_install.sh«. Enter the Product ID, the Client ID and the Client Secret here. Don't forget to save the file at the end.
- Now enter ». automated_install.sh «to start the installer. Various questions are asked here. For example, enter a "y" at the beginning to start the installation.
Raspberry Pi: Start Amazon Echo
Now you can start the echo. You need three terminal windows for this.
- First use the command »cd ~ / Desktop / alexa-avs-sample-app / samples« to switch to the corresponding subfolder. Then enter the command "cd companionService && npm start".
- Add the same cd command in the second terminal and then enter "cd javaclient && nvm exec: exec". You will then receive a message that you can confirm with "Yes". Log in here with your Amazon developer account and click on "Okay". The connection may be assumed to be unsafe: Just click on "Proceed". Click "OK" in the Java client as well.
- Also execute the cd command in the third terminal and then enter "cd wakeWordAgent / src && ./wakeWordAgent -e sensory".
- Tip: The Rapsberry Pi looks a bit more chic in a case.
Shop recommendation for Raspberry Pi Foundation expansion board EnOcean Pi radio module
€ 38.90
To the shop
Offered by BestCheck.de | Prices include VAT plus shipping
Compare other offers
In the next practical tip, you will learn how to use your Raspberry Pi as a file server.