molodoj88 / AlexaDevice

Alexa virtual device

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Alexa Device This project allows to launch Alexa on any Linux devices, even on embedded devices like Raspberry Pi (with usb headset).

#Running

sudo apt install ffmpeg swig libpulse-dev
sudo pip3 install h2 hpack hyper hyperframe requests 'git+https://github.com/moaxey/python-zeroconf' pocketsphinx
  • Make sure your system has PulseAudio support.
  • Run
python3 alexa.py
  • Open http://alexa.local:3000 in web browser on local device or device in the same network. Note app provides mDNS advertisement of local domain alexa.local. This is very helpful for using with monitorless devices.
  • Fill device credentials which was created in step 1, click 'log in'. Note Voice detection threshold is float value for adjusting voice detection. The less value, the easier to trigger. You may need to adjust it for your mic and voice.
  • Fill your amazon credentials.
  • Now you can speak with Alexa. App uses voice activation. Say 'Alexa' and phrase that you want to say to her. App makes beep in speakers when it hear 'Alexa' keyword and start recording.

#Snap package ( https://www.ubuntu.com/desktop/snappy ) App can be built as snap package. Install pulseaudio snap before installing this:

sudo snap install --devmode pulseaudio

Now build and install:

cd snap
snacraft
sudo snap install --devmode alexa_1.0_amd64.snap

#3rd party parts in source code Modified Python Alexa Voice Service - https://github.com/nicholasjconn/python-alexa-voice-service
For license details, see LICENSE file.

About

Alexa virtual device

License:Other


Languages

Language:Python 100.0%