Skip to content

Alexa Voice Service (AVS) client in C++ for raspberry pi or any Linux Distribution

License

Notifications You must be signed in to change notification settings

blackmutzi/alexa-avs-prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

N|Solid

alexa-avs-prototype (c++) travis

Alexa Voice Service (AVS) client in c++ for raspberry pi or any Linux Distribution. Project tested on Gentoo(x86_64) and Raspbian(arm).

The Prototype is deprecated use alexa-sdk-framewok/alexa-amazon-client, is already released and has more improvment.

what you need?

  • A Linux Distribution with PulseAudio Support.
  • Amazon Developer Account.
  • Follow the steps here to create a security profile.
  • And a WakeWordEngine Client from here.

download && build

git clone https://github.com/blackmutzi/alexa-avs-prototype
cd ./alexa-avs-prototype
qmake ./src/alexa-avs-prototype.pro
make

avs-configuration

first Step

go to config directory and modify ./src/config/config.json file

cd ./alexa-avs-prototype/src/config/
nano config.json 

{
 "client_id":" YOUR_CLIENT_ID_HERE ",
 "client_secret":" YOUR_CLIENT_SECRET_ID_HERE ",
 "code_grant":" YOUR_CODE_GRANT_HERE",
 "product_id":" YOUR_PRODUCT_NAME_HERE ",
 "redirect_uri":"https://localhost:3000/authresponse",
 "refresh_token":"AVS-CLIENT_SET_TOKEN_AUTOMATIC"
}

and write client_id, client_secret and product_id into the config. ( @see amazon-security-profile )

second Step

start now prototype ...

./alexa-avs-prototype

the avs-client show you a link, copy it in your Browser. Login Now ..

and get the grant code, save the grant code in the ./alexa-avs-prototype/src/config/config.json file, finish.

depends installing ( debian )

install:
  - sudo apt-get install libcurl4-gnutls-dev
  - sudo apt-get install libboost-all-dev
  - sudo apt-get install gcc-4.9
  - sudo apt-get install g++-4.9
  - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 100
  - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 100
  - sudo add-apt-repository -y "deb https://de.archive.ubuntu.com/ubuntu artful main restricted universe multiverse"
  - sudo apt-get update -qq
  - sudo apt-get install libnghttp2-dev
  - sudo apt-get install libevent-dev
  - sudo apt-get install libmp3lame-dev
  - sudo apt-get install libssl-dev
  - sudo apt-get install libasound2-dev