To use Alexe Voice Service with ReSpeaker.
- CherryPy
- Requests
- PyAudio
- ReSpeaker python library
- webrtcvad - for Voice Activity Detection, available on ReSpeaker by default
- PocketSphinx - for Keyword Spotting, available on ReSpeaker
- ffplay, part of ffmpeg
-
Run
git clone https://github.com/respeaker/Alexa.git && cd Alexa
-
Rename
example_creds.py
tocreds.py
and fillProductID
,Security_Profile_Description
,Security_Profile_ID
,Client_ID
andClient_Secret
with your Alexa device information. -
Run
sudo pip install cherrypy requests pyaudio webrtcvad pocketsphinx respeaker
to get required python packages. -
Run
python auth_web.py
and open http://localhost:3000It will redirect you to Amazon to sign in.
-
Run
python alexa.py
to interact with Alexa.
The respeaker python library requires 1.2M storage.
If the on-board flash doesn't have enough space,
we can use virtualenv to install python packages on a SD card.
If you get it work on Ubuntu, you can use the previous creds.py
and skip step 3 and step 5.
-
Register for an Amazon Developer Account. Make sure Web Settings look like the picture:
-
Run
cd /Media/SD-P1 && git clone https://github.com/respeaker/Alexa.git && cd Alexa
-
Rename
example_creds.py
tocreds.py
and fillProductID
,Security_Profile_Description
,Security_Profile_ID
,Client_ID
andClient_Secret
with your Alexa device information. -
Run
pip install cherrypy
to get required python packages. -
Run
python auth_web.py
, connect to ReSpeaker's AP and open http://192.168.100.1:3000It will redirect you to Amazon to sign in.
-
Run
python alexa.py
to interact with Alexa.