- Support Alexa Voice Service API v20160207
- 支持DuerOS
- Speaker interface
- Notifications interface
- gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gir1.2-gstreamer-1.0
- python-gi python-gst-1.0 python-pyaudio
- respeaker python library and pocketsphinx (optional, for hands-free keyword spotting)
For ReSpeaker Core (MT7688), gstreamer, pyaudio and pocketsphinx and respeaker python library are installed by default, just run
pip install avs
For Ubuntu/Debian:
sudo apt-get install gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly \ gir1.2-gstreamer-1.0 python-gi python-gst-1.0 python-pyaudio sudo pip install avs respeaker pocketsphinx
run
alexa-audio-check
to check if recording & playing is OK. If RMS is not zero, recording is OK, if you can hear alarm, playing is OK:$alexa-audio-check RMS: 41 RMS: 43
run
alexa-auth
to login Amazon, it will save authorization information to~/.avs.json
run
alexa-tap
, then press Enter to talk with alexarun
alexa
, then use "alexa" to start with conversation with alexa, for example, "alexa, what time is it"If you are using Linux but not using PulsAudio or ALSA dmix plugin, it is likely that your audio device doesn't support multiple player to play simultaneously. As
alexa
oralexa-tap
uses 3 gstreamer player by default, it should not work. In the case, you should tryPLAYER=single alexa
orPLAYER=single alexa-tap
to use only a single gstreamer player.
If you want to use your own client id and product id, try:
create a file named config.json with your product_id, client_id and client_secret:
{ "product_id": "x", "client_id": "y", "client_secret": "z" }
run
alexa-auth -c config.json
run
alexa-tap
oralexa
- Free software: GNU General Public License v3
This project is based on nicholas-gh/python-alexa-client.
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.