Code Monkey home page Code Monkey logo

raspberryecho's Introduction

RaspberryEcho

Turn your raspberry pi into a client for Amazon's Alexa service.

This is compatible with Raspberry Pi 3 (and probably 2).

Hardware requirements

  • A Raspberry Pi 3 (or 2)
  • An SD Card with a fresh install of Raspbian Jessie
  • An External Speaker with 3.5mm Jack
  • A USB Microphone
  • A push to make button connected to GPIO 26 and ground

Software requirements

You need to obtain a set of credentials from Amazon to use the Alexa Voice service.

  1. login at http://developer.amazon.com/login.html
  2. Go to Alexa then Alexa Voice Service.
  3. Create a new product type as a Device and give it a name.
  4. Create a new security profile,
  5. Under the web settings allowed origins put http://localhost:5000 and/or http://my_ip_address:5000
  6. Under return URL put http://localhost:5000/code and/or http://my_ip_address:5000

Install Required Packages

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-pip python-dev
sudo apt-get install python-alsaaudio libasound2-dev mpg123 python-alsaaudio
sudo pip install -r requirements.txt

Setup the service

chmod +x service_raspberryecho.sh
sudo cp service_raspberryecho.sh /etc/init.d/RaspberryEcho
sudo update-rc.d RaspberryEcho defaults
touch /var/log/raspberryecho.log

Authenticate

Open the amazon.ini and fill out the values with your credentials.

Then run,

python ./authenticate.py

Authenticate via URL

Get your IP

echo $(hostname -I)

Then, Open http://my_ip_address:5000/

A screen will open. At this point you have to "ALLOW" the application.

Once, approved, you will get a Success with you token

Test it

Installation completed. At this point you can either reboot or start the service manually.

Then, press the button and talk with Alexa, she will reply back!

raspberryecho's People

Contributors

ericpotvin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.