AVS Device SDK Dependencies
The Alexa Voice Service (AVS) Device SDK requires dependencies to compile and run. These dependencies include compilers, build tools, and open source libraries. This page lists these dependencies and the minimum versions tested against the SDK. If you choose to use different dependencies in your build, you might encounter issues beyond the scope of this documentation.
v1.21.0 version changes
- CHANGED the minimum required version of libcurl.
The AVS Device SDK requires the following dependencies to build. Make sure you're using the minimum version or higher that's listed in the table.
The AVS Device SDK provides C++-based libraries that enable your device to process audio inputs and triggers, establish persistent connections with AVS, and handle all Alexa interactions.
To compile the SDK, your device must run C ++.
The AVS Device SDK runs on one of the following platforms.
|Model: 3B or 4. OS: Raspbian Stretch and Buster
|Mojave (10.14.6) and High Sierra (10.13.6)
|Android 6.0 +
|Windows 10 Enterprise 1703
You need a compiler to build the AVS Device SDK if you're using Ubuntu, Raspberry Pi, or macOS.
|GNU Compiler Collection (GCC)
The AVS Device SDK uses the CMake build tool to compile dependencies and automate build tasks.
CMake is a cross-platform set of tools that manages your app dependencies and creates a native makefile and workspaces suitable for the platform you're building with. It helps you create, build, and test projects with the AVS Device SDK.
The AVS Device SDK uses the following open source libraries and their respective dependencies – libcurl, nghttp2, OpenSSL, and Doxygen.
Core music provider
The AVS Device SDK doesn't support music out-of-the-box. However, to pass product testing and certification, all Alexa devices must support the following AVS music service providers. The following audio libraries, packages, and dependencies are tested and work with the SDK.
The SDK plays media from music streaming services including Amazon Music, TuneIn, iHeart Radio, Pandora, Sirius XM, and more. For more details on supporting Apple music, see Media Player.
|Crypto library - For HLS demuxers
|1.8.4 or earlier
|libsoup - An HTTP client/server library used by GStreamer.
|2.6.5 or earlier
|libfaad-dev - AAC and HE-AAC decoding
|GStreamer Bad Plug-ins
There are various optional features you can enable in the AVS Device SDK. These require an additional set of dependencies, as described in the following tables.
Building the AVS Device SDK sample app is optional. The sample app lets you test Alexa on your preferred operating system, before integrating with your device. The sample app runs on Mac, Linux, Raspberry Pi, Windows, or Android. It requires the following dependencies.
Note: If you're using the Android Microphone and Media Player, you don't require these dependencies.
For more details about enabling Alerts, see Features.
Building with Bluetooth is optional and is supported on Linux or Raspberry Pi. You can use the following Bluetooth protocols.
To enable BlueZ and PulseAudio, the SDK uses the following libraries, modules, and dependencies. You can choose to build with different dependencies, however, they haven't been explicitly tested against the SDK.
|libpulse-dev - Required if enabling this particular CMake variable:
|PulseAudio and PulseAudio Bluetooth (or equivalent) - Used to handle audio routing
|12.2 or earlier
The MediaPlayerInterface allows for sourcing, playback control, navigation, and querying the state of media content. Building with the
MediaPlayerInterface is optional. To build this interface, you must install the following libraries, plug-ins, and dependencies:
|GStreamer Base Plug-ins
|GStreamer Good Plug-ins
|GStreamer Libav Plug-ins or GStreamer Ugly Plug-ins for decoding MP3 data
SAMPLE-AES decryption is optional. For more details about enabling SAMPLE-AES decryption, see Features.
|4.0.0 - 4.4.2
Build for Android
To build for Android, you must install the following libraries, packages, and dependencies.
|API Level 23 or later
|Android SDK tools - Included in Android Studio by default.
|1.0.39 or later
|Android Native Development Kit (NDK). Required for the
MediaPlayerInterface and sample app integration.
|r16 or later
|4.0.0 - 4.4.2
Was this page helpful?
Last updated: Oct 08, 2021