You must meet the following prerequisites to set up the Alexa Voice Service (AVS) Device SDK on a Raspberry Pi.
You need the following hardware to finish the basic steps in the tutorial.
- Raspberry Pi - Use a Raspberry Pi 3 or 4.
- Micro SD card - Minimum 8 GB.
- USB 2.0 microphone - Raspberry Pi doesn't have a built-in microphone. To interact with Alexa you must plug in an external microphone.
- External speaker or headset - Your audio source needs to connect to the Pi with 3.5 mm audio cable.
- USB keyboard and mouse - Choose any compatible keyboard and mouse.
- Raspberry Pi fan - Choose any compatible fan. Without a fan, the Raspberry Pi might overheat.
- HDMI monitor - Choose any compatible monitor. Alternatively, you can remote SSH into your Pi.
- Internet connection - Ethernet connection or a 2.4 Ghz Wi-Fi.
- Raspbian Operating System – Use Raspbian Buster. The instructions in this tutorial use NOOBS to download the latest version of Raspbian for you.
- The latest version of the AVS Device SDK – The instructions in this tutorial download the latest version of the SDK that's available.
For these tutorials, we've selected an inexpensive USB microphone, which isn't optimal capturing far field audio. When you ship a commercial product, consider leveraging the Development Kits for AVS. These kits provide complete, end-to-end system reference designs for creating products for Alexa.
If you don't have these items, you can find what you need by clicking the picture below.
Next, set up your Raspberry Pi and install the software required to run the SDK.