Giter Club home page Giter Club logo

alexadevice's Introduction

Alexa Device

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

Running

  • Follow this manual to create your own device and security profile - https://github.com/alexa/avs-device-sdk/wiki/Create-Security-Profile
    Add http://alexa.local:3000/authresponse to Allowed Return URLs and http://alexa.local:3000 to Allowed Origins Note this step can be skipped if you already have device profile credentials.
  • Install dependencies
sudo apt install python3-pip git ffmpeg swig libportaudio2 portaudio19-dev libpulse-dev
sudo pip3 install requests 'git+https://github.com/moaxey/python-zeroconf' 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
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.

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

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 - https://github.com/nicholasjconn/python-alexa-voice-service

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.