Golang interface to the Amazon Alexa Voice service
Go C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
cmd/alexa It works! Mar 7, 2016
config It works! Mar 7, 2016
portaudio Nuke portaudio examples since they ref the original repo Mar 7, 2016
osx.go Add missing file Mar 7, 2016
setup.go Add automuting when asking on OS X to improve listening Mar 7, 2016
vad.go minimal docs Mar 8, 2016


Use Amazon alexa with a simple: alexa ask


  • Portaudio: brew install portaudio
  • MPG123: brew install mpg123

Then go get github.com/evanphx/alexa/...

And you'll have alexa in $GOPATH/bin.

You'll need to sign up and create a developer device with amazon. Here are the instructions lovely copied from AlexaPi:

Next you need to obtain a set of credentials from Amazon to use the Alexa Voice service, login at http://developer.amazon.com and Goto Alexa then Alexa Voice Service You need to create a new product type as a Device, for the ID use something like AlexaPi, create a new security profile and under the web settings allowed origins put http://localhost:5000 and as a return URL put http://localhost:5000/code you can also create URLs replacing localhost with the IP of your Pi eg Make a note of these credentials you will be asked for them during the install process

Then run alexa setup. The values you'll need from creating it are:

  • Device Type ID into --product-id
  • Client ID into --id
  • Client Secret int --secret