Alexa 的官方網站。
AVS integration with AWS IoT As of Nov 15, 2022, the AVS Integration with the AWS IoT program is no longer available
1.1. AVS Device SDK 3.X
$ sudo apt-get install libc-ares-dev
$ sudo apt-get install libev-dev
- nghttp2 (openssl, zlib, libev, libcares)
- curl (openssl, nghttp2)
- libffi
- glib (libffi, zlib)
- orc
- gstreamer (glib)
$ sudo apt-get --yes install libgstreamer1.0-dev
$ sudo apt-get --yes install libgstreamer-plugins-base1.0-dev
$ sudo apt-get --yes install libgstreamer-plugins-good1.0-dev
$ sudo apt-get --yes install libgstreamer-plugins-bad1.0-dev
- gst-plugins-base
- gst-plugins-good
- gst-plugins-ugly
- sqlite
$ cd $HOME/sdk-folder/sdk-build
$ cmake $HOME/sdk-folder/sdk-source/avs-device-sdk \
-DGSTREAMER_MEDIA_PLAYER=ON \
-DPORTAUDIO=ON \
-DPKCS11=OFF \
-DPORTAUDIO_LIB_PATH=$PORTAUDIO_LIB_PATH \
-DPORTAUDIO_INCLUDE_DIR=/usr/include \
-DCMAKE_BUILD_TYPE=DEBUG
$ make SampleApp
3. Register A Device - Amazon Developer
{
"deviceInfo": {
"clientId": "amzn1.application-oa2-client.xxxxxx",
"productId": "EchoLankaHsu520"
}
}
4. Enable Security Profile - LWA Console
5.1. ubuntu
$ cd $HOME/sdk-folder/sdk-source/avs-device-sdk/tools/Install
$ . genConfig.sh \
config.json \
12345 \
$HOME/sdk-folder/db \
$HOME/sdk-folder/sdk-source/avs-device-sdk \
$HOME/sdk-folder/sdk-build/Integration/AlexaClientSDKConfig.json \
-DSDK_CONFIG_MANUFACTURER_NAME="Ubuntu" \
-DSDK_CONFIG_DEVICE_DESCRIPTION="Ubuntu"
$ cd $HOME/sdk-folder/sdk-build/
$ ./SampleApplications/ConsoleSampleApplication/src/SampleApp ./Integration/AlexaClientSDKConfig.json
######################################################
# > > > > > NOT YET AUTHORIZED < < < < < #
######################################################
############################################################################################
# To authorize, browse to: 'https://amazon.com/us/code' and enter the code: {XXXX} #
############################################################################################
# To relaunch the Sample App with DEBUG9
$ cd $HOME/sdk-folder/sdk-build
$ ./SampleApplications/ConsoleSampleApplication/src/SampleApp ./Integration/AlexaClientSDKConfig.json DEBUG9
5.2. Raspberry Pi
$ cd $HOME/sdk-folder/sdk-source/avs-device-sdk/tools/Install
$ . genConfig.sh \
config.json \
12345 \
$HOME/sdk-folder/db \
$HOME/sdk-folder/sdk-source/avs-device-sdk \
$HOME/sdk-folder/sdk-build/Integration/AlexaClientSDKConfig.json \
-DSDK_CONFIG_MANUFACTURER_NAME="raspberrypi" \
-DSDK_CONFIG_DEVICE_DESCRIPTION="raspberrypi"
$ arecord -l
$ aplay -l
pcm.!default {
type asym
playback.pcm {
type plug
slave.pcm "hw:0,0"
}
capture.pcm {
type plug
slave.pcm "hw:1,0"
}
}
$ cd $HOME/sdk-folder/sdk-build/
$ export PA_ALSA_PLUGHW=1
$ ./SampleApplications/ConsoleSampleApplication/src/SampleApp ./Integration/AlexaClientSDKConfig.json
######################################################
# > > > > > NOT YET AUTHORIZED < < < < < #
######################################################
############################################################################################
# To authorize, browse to: 'https://amazon.com/us/code' and enter the code: {XXXX} #
############################################################################################
# To relaunch the Sample App with DEBUG9
$ cd $HOME/sdk-folder/sdk-build
$ ./SampleApplications/ConsoleSampleApplication/src/SampleApp ./Integration/AlexaClientSDKConfig.json DEBUG9
I.2. Official - Build the Alexa Voice Service Device SDK
I.3. Official - Build with Amazon's Newest Devices & Services
$ sudo apt-get install libcunit1 libcunit1-doc libcunit1-dev
$ sudo apt-get install libc-ares-dev
$ sudo apt-get install libgtest-dev
$ sudo apt-get install -y libarchive-dev
- ExtensionPath.cmake
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
Created and designed by Lanka Hsu.
HelperX is available under the BSD-3-Clause license. See the LICENSE file for more info.