How to add Alexa to a Raspberry Pi

Or any Linux device

DeviceHive
Jun 23, 2017 · 3 min read
Image for post
Image for post

How to Add Alexa to a Raspberry Pi:

  1. You need to create your own Alexa Device on the Amazon developer portal. Follow this manual to create your own device and security profile.
    Add http://alexa.local:3000/authresponse to the Allowed Return URLs and http://alexa.local:3000 to the Allowed-Origins.
  2. Connect an audio device: a microphone and speakers to your device. It could be a USB headset for example.
  3. Install the PulseAudio snap:
    sudo snap install --devmode pulseaudio
  4. Install the Alexa snap from the store:
    sudo snap install --channel beta alexa
  5. Open http://alexa.local:3000 in a web browser on a local device or a device on the same network.
    Note: the app provides an mDNS advertisement of the local domain alexa.local. This is very helpful for using with monitorless devices.
  6. Fill in the device credentials that were created during step 1, click ‘log in’.
    Note: the voice detection threshold is a float value for adjusting voice detection. The smaller the value, the easier it is to trigger. You may need to adjust it for your mic and voice.
  7. Fill in your Amazon credentials.
  8. Now you can speak with Alexa. The app uses voice activation, so say ‘Alexa’ and the phrase that you want to say to her. The app will make a beep via the speakers when it hears the ‘Alexa’ keyword and starts recording.
  9. Enjoy Alexa without the need to buy special hardware
Image for post
Image for post

Want all the latest advances and tech news sent directly to your inbox?

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

IoT For All

Expert analysis, simple explanations, and the latest…

Sign up for IoT For All Newsletter

By IoT For All

IoT For All's weekly round up of best reads, events and news all in one place! Take a look

By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices.

Check your inbox
Medium sent you an email at to complete your subscription.

DeviceHive

Written by

IoT-related stories from an open source IoT platform with the wide range of device integration options.

IoT For All

Expert analysis, simple explanations, and the latest advances in IoT, AR/VR/MR, AI & ML and beyond! To publish with us please email: contribute@iotforall.com

DeviceHive

Written by

IoT-related stories from an open source IoT platform with the wide range of device integration options.

IoT For All

Expert analysis, simple explanations, and the latest advances in IoT, AR/VR/MR, AI & ML and beyond! To publish with us please email: contribute@iotforall.com

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store