Alexa virtual device
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Alexa Device

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


sudo apt install python3-pip git ffmpeg swig libportaudio2 portaudio19-dev libpulse-dev
sudo pip3 install requests 'git+' pocketsphinx pyaudio

Note 'libpulse-dev' should be installed only for PulseAudio based devices. 'pyaduio', 'libportaudio2' and 'portaudio19-dev' should be installed on other devices, for example alsa capable.

  • Make sure your system has PulseAudio support.
  • Run
  • 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 ( )

App can be built as snap package. Install pulseaudio snap before installing this:

sudo snap install --devmode pulseaudio

Now build and install:

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

Note if you modified snap to used for alsa based devices, then additionally call this line sudo snap connect alexa:alsa :alsa.

Similar open source software

Python Alexa Voice Service -