Code Monkey home page Code Monkey logo

alexa's Introduction

Alexa

To use Alexe Voice Service with ReSpeaker.

Requirements

  • 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

On Ubuntu

  1. Register for an Amazon Developer Account.

  2. Run git clone https://github.com/respeaker/Alexa.git && cd Alexa

  3. Rename example_creds.py to creds.py and fill ProductID, Security_Profile_Description, Security_Profile_ID, Client_ID and Client_Secret with your Alexa device information.

  4. Run sudo pip install cherrypy requests pyaudio webrtcvad pocketsphinx respeaker to get required python packages.

  5. Run python auth_web.py and open http://localhost:3000

    It will redirect you to Amazon to sign in.

  6. Run python alexa.py to interact with Alexa.

On ReSpeaker

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.

  1. Register for an Amazon Developer Account. Make sure Web Settings look like the picture:

  2. Run cd /Media/SD-P1 && git clone https://github.com/respeaker/Alexa.git && cd Alexa

  3. Rename example_creds.py to creds.py and fill ProductID, Security_Profile_Description, Security_Profile_ID, Client_ID and Client_Secret with your Alexa device information.

  4. Run pip install cherrypy to get required python packages.

  5. Run python auth_web.py, connect to ReSpeaker's AP and open http://192.168.100.1:3000

    It will redirect you to Amazon to sign in.

  6. Run python alexa.py to interact with Alexa.

Credits

alexa's People

Contributors

xiongyihui avatar jerryyip avatar

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.