SlideShare a Scribd company logo
DIY Your Amazon Echo
Victor Sue
Agenda
• What is Amazon Echo
• Amazon Alexa Voice Service
• Alexa Service Flow
• DIY your RPi Echo
• Demo
• Next Step?
What is Amazon Echo?
Amazon Alexa Voice Service
Amazon Alexa Voice Service (cont.)
Alexa Service Flow
Alexa Service Flow (cont.)
Voice
Text
Intent
Feedback Activity
Device
Cloud
Alexa Service Flow (cont.)
Amazon Alexa Voice Service (cont.)
Voice
Intent
Amazon Alexa Voice Service (cont.)
Alexa Connected Home (CoHo) Skills
WeMo Lighting Skills
Intent
Activity
Alexa Service Flow (cont.)
DIY Your RPi Echo
• alexa-avs-sample-app
https://github.com/alexa/alexa-avs-sample-app
DIY Your RPi Echo (cont.)
DIY Your RPi Echo (cont.)
• Step 1: Setting up your Pi
• Install Raspbian to SD card
• Expand filesystem the SD card
• Enable the Serial port
• Install the related Software
• sudo apt-get install openssh-server
• sudo apt-get install git
• sudo apt-get install vim
• sudo apt-get install tightvncserver
• sudo apt-get install nodejs npm
• Step 2:
• Register for an Amazon developer account
• https://developer.amazon.com/login.html
DIY Your RPi Echo (cont.)
• Step 3a: Create a device and security profile
• Login to Amazon Developer Portal
• https://developer.amazon.com/login.html
• Click on Apps & Services tab -> Alexa -> Alexa Voice Service -> Get Started
• In the Register a Product Type menu, select Device Type Info.
• Device Type ID: my_device
• Display Name: My Device
• Click Next
DIY Your RPi Echo (cont.)
• Step 3b: Create a device and security profile
• In the Register a Product Type menu, select Security Profile.
• Click on the Security Profile drop down and choose “Create a new profile”
• Click the General Tab
• Security Profile Name: Alexa Voice Service Sample App Security Profile
• Security Profile Description: Alexa Voice Service Sample App Security Profile Description
• Click Next
• And Client ID and Client Secret will be generated for you.
DIY Your RPi Echo (cont.)
• Step 3c: Create a device and security profile
• Click the Web Settings Tab
• Click the "Edit" button
• Allowed Origins: Click "Add Another" and then enter https://localhost:3000 in the text field that
appears.
• Allowed Return URLs: Click "Add Another" and then enter https://localhost:3000/authresponse in
the text field that appears.
• Click Next
DIY Your RPi Echo (cont.)
• Step 3d: Create a device and
security profile
• In the Register a Product Type menu,
select Device Details.
• Image: ANY test image from your own
• Category: Other
• Description: Alexa Voice Service sample
app test
• What is your expected timeline for
commercialization?: Longer than 4
months / TBD
• How many devices are you planning to
commercialize?: 0
• Click Next
DIY Your RPi Echo (cont.)
• Step 3e: Create a device and security profile
• In the Register a Product Type menu, select Amazon Music
• Enable Amazon Music?: No
• Click the Submit button
DIY Your RPi Echo (cont.)
• Step 4: Clone the sample app
• In Raspberry Pi terminal
cd ~/Desktop
git clone https://github.com/alexa/alexa-avs-sample-app.git
• Step 5: Update the install script with your credentials
• In Raspberry Pi terminal
cd ~/Desktop/alexa-avs-sample-app
vim automated_install.sh
• Changes these item from Step 3:
• ProductID
• ClientID
• ClientSecret
DIY Your RPi Echo (cont.)
• Step 6: Run the install script
• In Raspberry Pi terminal
cd ~/Desktop/alexa-avs-sample-app
. automated_install.sh
• Step 7: Fix the audio setting bug (!)
• In Raspberry Pi terminal
vim ~/.asoundrc
~/.asoundrc
pcm.!default
{
type asym
playback.pcm {
type hw
card 0
device 0
}
capture.pcm {
type plug
slave {
pcm {
type hw
card 1
device 0
}
}
}
}
DIY Your RPi Echo (cont.)
• Step 8: Run Alexa sample application
• Terminal 1 : Web Authentication
cd ~/Desktop/alexa-avs-sample-app/samples
cd companionService && npm start
• Terminal 2 : AVS Client
cd ~/Desktop/alexa-avs-sample-app/samples
cd javaclient && mvn exec:exec
• Terminal 3 : Wakeup Agent: kitt.ai
cd ~/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/src/
./wakeWordAgent -e kitt_ai
Demo
• Custom Skill
• Control LED ON/OFF on
Realtek Ameba board
Voice Intent
Trigger
Skill
MQTT
Next Step?
• Alexa Pi
• Full python framework for AVS
• Turn a Raspberry Pi into a AVS client
https://github.com/sammachin/AlexaPi
DIY Your Amazon Echo

More Related Content

PDF
Building Voice Apps & Experiences For Amazon Echo
PDF
Develop Alexa Skills for Amazon Echo with PHP
PDF
Amazon Alexa: our successes and fails
PPTX
Amazon Alexa - Introduction & Custom Skills
PPTX
Amazon alexa - building custom skills
PDF
Your First Amazon Alexa Skill
PDF
Alexa Skills Kit with Web API on Azure
PPTX
Amazon Echo
Building Voice Apps & Experiences For Amazon Echo
Develop Alexa Skills for Amazon Echo with PHP
Amazon Alexa: our successes and fails
Amazon Alexa - Introduction & Custom Skills
Amazon alexa - building custom skills
Your First Amazon Alexa Skill
Alexa Skills Kit with Web API on Azure
Amazon Echo

What's hot (10)

PPTX
Amazon Alexa Development Overview
PPTX
Amazon Alexa and Echo
PPTX
Voice enable all the things with Alexa
PPTX
Amazon Alexa
PPTX
Alexa Smart Home Skill
PPTX
Alexa in 10 minutes
PPTX
Alexa Skills Kit
PPTX
Building Boston Rail - An Alexa Skill
PDF
Alexa, nice to meet you!
PDF
Lviv MD Day 2015 Олексій Озун "Introduction to the new Apple TV and TVos"
Amazon Alexa Development Overview
Amazon Alexa and Echo
Voice enable all the things with Alexa
Amazon Alexa
Alexa Smart Home Skill
Alexa in 10 minutes
Alexa Skills Kit
Building Boston Rail - An Alexa Skill
Alexa, nice to meet you!
Lviv MD Day 2015 Олексій Озун "Introduction to the new Apple TV and TVos"
Ad

Similar to DIY Your Amazon Echo (20)

PDF
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
PDF
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless W...
PPTX
Araport Workshop Tutorial 2: Authentication and the Agave Profiles Service
PDF
Apigility – Lightning Fast API Development - OSSCamp 2014
PDF
Swiftstart - Provisioning Basics
PDF
VyAPI - A Modern Cloud Based Vulnerable Android App (Presented at BSides Delh...
PPTX
DevOps On AWS - Deep Dive on Continuous Delivery
PDF
Fix me if you can - DrupalCon prague
PDF
用Serverless技術快速開發line聊天機器人
PDF
SoftLayer API 12032015
PDF
Building Better IoT Applications without Servers
PPTX
Coffee & Pi - Getting Started with Python
PDF
A. Sirota "Building an Automation Solution based on Appium"
PDF
Abusing bleeding edge web standards for appsec glory
PPTX
Building AI-powered Serverless Applications on AWS
PPTX
Dirty Little Secrets They Didn't Teach You In Pentest Class v2
PPTX
Dirty Little Secrets They Didn't Teach You In Pentest Class v2
PPTX
Learn Electron for Web Developers
PPT
Beyond Ethical Hacking By Nipun Jaswal , CSA HCF Infosec Pvt. Ltd
PDF
Building Voice Controls and Integrating with Automation Actions on an IoT Net...
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless W...
Araport Workshop Tutorial 2: Authentication and the Agave Profiles Service
Apigility – Lightning Fast API Development - OSSCamp 2014
Swiftstart - Provisioning Basics
VyAPI - A Modern Cloud Based Vulnerable Android App (Presented at BSides Delh...
DevOps On AWS - Deep Dive on Continuous Delivery
Fix me if you can - DrupalCon prague
用Serverless技術快速開發line聊天機器人
SoftLayer API 12032015
Building Better IoT Applications without Servers
Coffee & Pi - Getting Started with Python
A. Sirota "Building an Automation Solution based on Appium"
Abusing bleeding edge web standards for appsec glory
Building AI-powered Serverless Applications on AWS
Dirty Little Secrets They Didn't Teach You In Pentest Class v2
Dirty Little Secrets They Didn't Teach You In Pentest Class v2
Learn Electron for Web Developers
Beyond Ethical Hacking By Nipun Jaswal , CSA HCF Infosec Pvt. Ltd
Building Voice Controls and Integrating with Automation Actions on an IoT Net...
Ad

More from Victor Sue (6)

PPTX
Arduino在農業、氣象與工業上的應用
PDF
20200726-SINICA-自造生態監測系統工作坊
PDF
Esp32 cam arduino-123
PDF
田間感測裝置開發心得分享
PDF
低功率感測器設計 田間感測器 X 水下盒子
PDF
Alexa Portable Platform Design and Baidu DuerOS
Arduino在農業、氣象與工業上的應用
20200726-SINICA-自造生態監測系統工作坊
Esp32 cam arduino-123
田間感測裝置開發心得分享
低功率感測器設計 田間感測器 X 水下盒子
Alexa Portable Platform Design and Baidu DuerOS

Recently uploaded (20)

PPTX
Fundamentals of Mechanical Engineering.pptx
PPTX
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
PDF
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
PPTX
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
PDF
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
PPTX
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
PPTX
Nature of X-rays, X- Ray Equipment, Fluoroscopy
PDF
Soil Improvement Techniques Note - Rabbi
PDF
Visual Aids for Exploratory Data Analysis.pdf
PDF
distributed database system" (DDBS) is often used to refer to both the distri...
PPTX
Software Engineering and software moduleing
PPTX
communication and presentation skills 01
PDF
August 2025 - Top 10 Read Articles in Network Security & Its Applications
PDF
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
PDF
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PPTX
Artificial Intelligence
PPTX
Management Information system : MIS-e-Business Systems.pptx
PDF
Abrasive, erosive and cavitation wear.pdf
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
Fundamentals of Mechanical Engineering.pptx
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
Nature of X-rays, X- Ray Equipment, Fluoroscopy
Soil Improvement Techniques Note - Rabbi
Visual Aids for Exploratory Data Analysis.pdf
distributed database system" (DDBS) is often used to refer to both the distri...
Software Engineering and software moduleing
communication and presentation skills 01
August 2025 - Top 10 Read Articles in Network Security & Its Applications
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
Artificial Intelligence
Management Information system : MIS-e-Business Systems.pptx
Abrasive, erosive and cavitation wear.pdf
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems

DIY Your Amazon Echo

  • 1. DIY Your Amazon Echo Victor Sue
  • 2. Agenda • What is Amazon Echo • Amazon Alexa Voice Service • Alexa Service Flow • DIY your RPi Echo • Demo • Next Step?
  • 5. Amazon Alexa Voice Service (cont.)
  • 7. Alexa Service Flow (cont.) Voice Text Intent Feedback Activity Device Cloud
  • 9. Amazon Alexa Voice Service (cont.) Voice Intent
  • 10. Amazon Alexa Voice Service (cont.) Alexa Connected Home (CoHo) Skills WeMo Lighting Skills Intent Activity
  • 12. DIY Your RPi Echo • alexa-avs-sample-app https://github.com/alexa/alexa-avs-sample-app
  • 13. DIY Your RPi Echo (cont.)
  • 14. DIY Your RPi Echo (cont.) • Step 1: Setting up your Pi • Install Raspbian to SD card • Expand filesystem the SD card • Enable the Serial port • Install the related Software • sudo apt-get install openssh-server • sudo apt-get install git • sudo apt-get install vim • sudo apt-get install tightvncserver • sudo apt-get install nodejs npm • Step 2: • Register for an Amazon developer account • https://developer.amazon.com/login.html
  • 15. DIY Your RPi Echo (cont.) • Step 3a: Create a device and security profile • Login to Amazon Developer Portal • https://developer.amazon.com/login.html • Click on Apps & Services tab -> Alexa -> Alexa Voice Service -> Get Started • In the Register a Product Type menu, select Device Type Info. • Device Type ID: my_device • Display Name: My Device • Click Next
  • 16. DIY Your RPi Echo (cont.) • Step 3b: Create a device and security profile • In the Register a Product Type menu, select Security Profile. • Click on the Security Profile drop down and choose “Create a new profile” • Click the General Tab • Security Profile Name: Alexa Voice Service Sample App Security Profile • Security Profile Description: Alexa Voice Service Sample App Security Profile Description • Click Next • And Client ID and Client Secret will be generated for you.
  • 17. DIY Your RPi Echo (cont.) • Step 3c: Create a device and security profile • Click the Web Settings Tab • Click the "Edit" button • Allowed Origins: Click "Add Another" and then enter https://localhost:3000 in the text field that appears. • Allowed Return URLs: Click "Add Another" and then enter https://localhost:3000/authresponse in the text field that appears. • Click Next
  • 18. DIY Your RPi Echo (cont.) • Step 3d: Create a device and security profile • In the Register a Product Type menu, select Device Details. • Image: ANY test image from your own • Category: Other • Description: Alexa Voice Service sample app test • What is your expected timeline for commercialization?: Longer than 4 months / TBD • How many devices are you planning to commercialize?: 0 • Click Next
  • 19. DIY Your RPi Echo (cont.) • Step 3e: Create a device and security profile • In the Register a Product Type menu, select Amazon Music • Enable Amazon Music?: No • Click the Submit button
  • 20. DIY Your RPi Echo (cont.) • Step 4: Clone the sample app • In Raspberry Pi terminal cd ~/Desktop git clone https://github.com/alexa/alexa-avs-sample-app.git • Step 5: Update the install script with your credentials • In Raspberry Pi terminal cd ~/Desktop/alexa-avs-sample-app vim automated_install.sh • Changes these item from Step 3: • ProductID • ClientID • ClientSecret
  • 21. DIY Your RPi Echo (cont.) • Step 6: Run the install script • In Raspberry Pi terminal cd ~/Desktop/alexa-avs-sample-app . automated_install.sh • Step 7: Fix the audio setting bug (!) • In Raspberry Pi terminal vim ~/.asoundrc ~/.asoundrc pcm.!default { type asym playback.pcm { type hw card 0 device 0 } capture.pcm { type plug slave { pcm { type hw card 1 device 0 } } } }
  • 22. DIY Your RPi Echo (cont.) • Step 8: Run Alexa sample application • Terminal 1 : Web Authentication cd ~/Desktop/alexa-avs-sample-app/samples cd companionService && npm start • Terminal 2 : AVS Client cd ~/Desktop/alexa-avs-sample-app/samples cd javaclient && mvn exec:exec • Terminal 3 : Wakeup Agent: kitt.ai cd ~/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/src/ ./wakeWordAgent -e kitt_ai
  • 23. Demo • Custom Skill • Control LED ON/OFF on Realtek Ameba board Voice Intent Trigger Skill MQTT
  • 24. Next Step? • Alexa Pi • Full python framework for AVS • Turn a Raspberry Pi into a AVS client https://github.com/sammachin/AlexaPi