SlideShare a Scribd company logo
1 of 28
Voice control
with
Amazon Alexa
Tsypuk Roman
About me
Sr Software engineer at Lohika, Altran Group
Speaker at conferences, meetups, JUGs
java, kotlin, spring boot, distributed systems,
microservices, security, IoT
Radio HAM, software defined radio
2
Tsypuk
Roman
Agenda
1. What is Amazon Alexa?
2. How to develop and apply skills?
3. How does smart home integration works?
4. AWS lambdas
5. Messaging under the hood
6. Smart Gateway
3
Alexa
4
Cloud-based voice service available on
tens of millions of devices from Amazon
and third-party device manufacturers.
With Alexa, you build natural voice
experiences interact models
NLP, voice recognition, self educating AI
Echo devices
5
Alexa features
6
BMW & MINI Alexa integration
Today, 8.5 million BMW Group models worldwide are already connected. From mid-2018
Amazon Alexa will be available in all BMW and MINI vehicles in USA, UK and Germany.
7https://www.youtube.com/watch?v=mHCI6lM_Zl8
“By making this step of integrating Alexa
into our models from mid-2018, BMW
and MINI will form a more intrinsic part
of our customers’ digital lifestyles,”
remarked Dieter May, Senior Vice
President Digital Services and Business
Models at the BMW Group.
Skills
8
Flash Briefing
defines audio/video/text content added to the
brief of news
“Alexa, tell me news”
Custom
everything is specified by developer
Smart Home
controls IoT devices like lights and thermostats
“Alexa, dim the light”
Video
video content is sent in response
“Alexa change to CNN”
Flash Brief’s endpoint requirements
9
● non-password-protected HTTPS endpoint
● either text(4500 characters) or audio content (256kbps mono or
stereo MP3 10 minutes)
● JSON or RSS UTF-8 encoded
● available 24 hours a day/7 days a week
● items order from newest to oldest, based on the date. Alexa may
ignore older items.
● each item in the feed should be unique and should not overlap
with content in another feed item.
Skills: Flash Brief
10
ApiGateway
Lambda
1
2
3
Demo
Flash Brief
Skill
“JAVA NEWS”
Create Flash brief skill from the scratch
Alexa tells us latest Java world news
“Alexa give me latest news”
11
AWS
Lambda
12
AWS Lambda
need to provision, manage server
on-demande charged hourly based on compute
capacity , reserved, spot
need DNS, ELB, autoscaling, plus correct
configuration and other techniques
need manual security OS updates
networking knowledge, routes to infrastructure
<Any>
13
Lambda
serverless compute service
charged for 100ms running and number of time is
triggered, no idle time payment
scales in parallel on each trigger
VS
provisioning
charge
scaling
security
interaction
runtime
No infrastructure to maintain
triggered (API GW, IoT, ASK,Kinesis, S3,SNS,
CodeCommit, CloudWatch, CloudFront)
C#, GO, Java, NodeJS, Python code
Skills: Custom skill
14
service on
other clouds,
datacenters
2
Lambda
1
Router for invocations
15
Lambda
Alexa, ask “big brother” who is the winner ?
Lambda
ARN
ARN
Lambda
ARN
...
invocation
Utterance-to-Intent mapping
Alexa, ask “big brother” who is the winner ?
Lambda
utterance
winner
intent 1
intent N
...
● find the winner
● who is lucky
● who is the winner
● get the winner
● winner
utterance
16
“BIG BRO”
Alexa will choose the winner
from the audience.
“Alexa, who is present?”
“Alexa, get the winner”
Demo
Custom Skill
17
IoT
Smart Home
18
Alexa in Wireshark
19
Sequence diagram: Search devices
UDP: HTTP
http://ip:port/setup.xml
“Alexa,
find my devices”
20
UDP: UPnP broadcast message
M-SEARCH
TCP: HTTP
GET ip:port/setup.xml
TCP: HTTP
RESPONSE
“Starting
discovery”
“I have found
1 new device...”
Sequence diagram: Device control
21
“Alexa, turn
meeting room on”
TCP: HTTP SOAP
POST ip:port/control/basicevent1
TCP: HTTP SOAP
RESPONSE
“OK”
WE ARE ENGINEERS
22
Demo
23
Kitchen
Room
Hall
ESP-12
light control
End-to-End: How it works
24
Lambda
1
Why not to create Local Lambdas for Alexa?
25
Demo
Smart
Gateway
26
Links
1. BMW annonce of Alexa devices promo
https://www.youtube.com/watch?v=mHCI6lM_Zl8
2. Flash Brief requirements
https://developer.amazon.com/docs/flashbriefing/flash-
briefing-skill-api-feed-reference.html
3. Arduino WEMO switch
https://github.com/kakopappa/arduino-esp8266-alexa-
multiple-wemo-switch/blob/master/wemos/Switch.cpp
4. Alexa voice AI with filtering by AWS
https://www.youtube.com/watch?v=2Bazibaz1F8
27
Q&A
28

More Related Content

What's hot

20141021 AWS Cloud Taekwon - Big Data on AWS
20141021 AWS Cloud Taekwon - Big Data on AWS20141021 AWS Cloud Taekwon - Big Data on AWS
20141021 AWS Cloud Taekwon - Big Data on AWSAmazon Web Services Korea
 
New Artificial Intelligence and IoT Services (Lex, Polly, Rekognition, Greeng...
New Artificial Intelligence and IoT Services (Lex, Polly, Rekognition, Greeng...New Artificial Intelligence and IoT Services (Lex, Polly, Rekognition, Greeng...
New Artificial Intelligence and IoT Services (Lex, Polly, Rekognition, Greeng...Amazon Web Services
 
Cloud-Native Roadshow - Google - DC
Cloud-Native Roadshow - Google - DCCloud-Native Roadshow - Google - DC
Cloud-Native Roadshow - Google - DCVMware Tanzu
 
Ignite eCommerce growth with AWS
Ignite eCommerce growth with AWSIgnite eCommerce growth with AWS
Ignite eCommerce growth with AWSAmazon Web Services
 
Cloud-Native Roadshow - Solace - Denver
Cloud-Native Roadshow - Solace - DenverCloud-Native Roadshow - Solace - Denver
Cloud-Native Roadshow - Solace - DenverVMware Tanzu
 
Cloud-Native Roadshow - Solace - Atlanta
Cloud-Native Roadshow - Solace - AtlantaCloud-Native Roadshow - Solace - Atlanta
Cloud-Native Roadshow - Solace - AtlantaVMware Tanzu
 
AWS Lambda Documentation
AWS Lambda DocumentationAWS Lambda Documentation
AWS Lambda DocumentationWhizlabs
 
AWS architecture and a human body
AWS architecture and a human bodyAWS architecture and a human body
AWS architecture and a human bodyOstap Soroka
 
Intro to AWS IoT - Pop-up Loft London
Intro to AWS IoT - Pop-up Loft LondonIntro to AWS IoT - Pop-up Loft London
Intro to AWS IoT - Pop-up Loft LondonBoaz Ziniman
 
Multi-Factor Auth in Alexa Skills - Faisal Valli
Multi-Factor Auth in Alexa Skills - Faisal ValliMulti-Factor Auth in Alexa Skills - Faisal Valli
Multi-Factor Auth in Alexa Skills - Faisal ValliOscar Merry
 
Enrich Your DevOps Environment: Tools for Accelerating and Integrating Your A...
Enrich Your DevOps Environment: Tools for Accelerating and Integrating Your A...Enrich Your DevOps Environment: Tools for Accelerating and Integrating Your A...
Enrich Your DevOps Environment: Tools for Accelerating and Integrating Your A...Amazon Web Services
 
What's New @AWS for AWS User Group Hull
What's New @AWS for AWS User Group HullWhat's New @AWS for AWS User Group Hull
What's New @AWS for AWS User Group HullIan Massingham
 
使用 Serverless 技術打造支援 Alexa 的物聯網服務
使用 Serverless 技術打造支援 Alexa 的物聯網服務使用 Serverless 技術打造支援 Alexa 的物聯網服務
使用 Serverless 技術打造支援 Alexa 的物聯網服務Amazon Web Services
 
Reply Netcamp PoliTo - AWS IoT - Grohe and Caleffi Case Studies
Reply Netcamp PoliTo - AWS IoT - Grohe and Caleffi Case StudiesReply Netcamp PoliTo - AWS IoT - Grohe and Caleffi Case Studies
Reply Netcamp PoliTo - AWS IoT - Grohe and Caleffi Case StudiesAndrea Mercanti
 
Cloud-Native Roadshow - Google - Seattle
Cloud-Native Roadshow - Google - Seattle Cloud-Native Roadshow - Google - Seattle
Cloud-Native Roadshow - Google - Seattle VMware Tanzu
 
Matt Johnson - My developer journey towards true hybrid cloud with Kubernetes...
Matt Johnson - My developer journey towards true hybrid cloud with Kubernetes...Matt Johnson - My developer journey towards true hybrid cloud with Kubernetes...
Matt Johnson - My developer journey towards true hybrid cloud with Kubernetes...Codemotion
 

What's hot (20)

20141021 AWS Cloud Taekwon - Big Data on AWS
20141021 AWS Cloud Taekwon - Big Data on AWS20141021 AWS Cloud Taekwon - Big Data on AWS
20141021 AWS Cloud Taekwon - Big Data on AWS
 
New Artificial Intelligence and IoT Services (Lex, Polly, Rekognition, Greeng...
New Artificial Intelligence and IoT Services (Lex, Polly, Rekognition, Greeng...New Artificial Intelligence and IoT Services (Lex, Polly, Rekognition, Greeng...
New Artificial Intelligence and IoT Services (Lex, Polly, Rekognition, Greeng...
 
Cloud-Native Roadshow - Google - DC
Cloud-Native Roadshow - Google - DCCloud-Native Roadshow - Google - DC
Cloud-Native Roadshow - Google - DC
 
Ignite eCommerce growth with AWS
Ignite eCommerce growth with AWSIgnite eCommerce growth with AWS
Ignite eCommerce growth with AWS
 
Cloud-Native Roadshow - Solace - Denver
Cloud-Native Roadshow - Solace - DenverCloud-Native Roadshow - Solace - Denver
Cloud-Native Roadshow - Solace - Denver
 
AWS Lambda
AWS LambdaAWS Lambda
AWS Lambda
 
Cloud-Native Roadshow - Solace - Atlanta
Cloud-Native Roadshow - Solace - AtlantaCloud-Native Roadshow - Solace - Atlanta
Cloud-Native Roadshow - Solace - Atlanta
 
AWS Lambda Documentation
AWS Lambda DocumentationAWS Lambda Documentation
AWS Lambda Documentation
 
AWS architecture and a human body
AWS architecture and a human bodyAWS architecture and a human body
AWS architecture and a human body
 
Intro to AWS IoT - Pop-up Loft London
Intro to AWS IoT - Pop-up Loft LondonIntro to AWS IoT - Pop-up Loft London
Intro to AWS IoT - Pop-up Loft London
 
Multi-Factor Auth in Alexa Skills - Faisal Valli
Multi-Factor Auth in Alexa Skills - Faisal ValliMulti-Factor Auth in Alexa Skills - Faisal Valli
Multi-Factor Auth in Alexa Skills - Faisal Valli
 
Enrich Your DevOps Environment: Tools for Accelerating and Integrating Your A...
Enrich Your DevOps Environment: Tools for Accelerating and Integrating Your A...Enrich Your DevOps Environment: Tools for Accelerating and Integrating Your A...
Enrich Your DevOps Environment: Tools for Accelerating and Integrating Your A...
 
What's New @AWS for AWS User Group Hull
What's New @AWS for AWS User Group HullWhat's New @AWS for AWS User Group Hull
What's New @AWS for AWS User Group Hull
 
使用 Serverless 技術打造支援 Alexa 的物聯網服務
使用 Serverless 技術打造支援 Alexa 的物聯網服務使用 Serverless 技術打造支援 Alexa 的物聯網服務
使用 Serverless 技術打造支援 Alexa 的物聯網服務
 
Reply Netcamp PoliTo - AWS IoT - Grohe and Caleffi Case Studies
Reply Netcamp PoliTo - AWS IoT - Grohe and Caleffi Case StudiesReply Netcamp PoliTo - AWS IoT - Grohe and Caleffi Case Studies
Reply Netcamp PoliTo - AWS IoT - Grohe and Caleffi Case Studies
 
Python on AWS Lambda
Python on AWS Lambda Python on AWS Lambda
Python on AWS Lambda
 
AWS Architecture - GDC 2014
AWS Architecture - GDC 2014AWS Architecture - GDC 2014
AWS Architecture - GDC 2014
 
AWS Amplify
AWS AmplifyAWS Amplify
AWS Amplify
 
Cloud-Native Roadshow - Google - Seattle
Cloud-Native Roadshow - Google - Seattle Cloud-Native Roadshow - Google - Seattle
Cloud-Native Roadshow - Google - Seattle
 
Matt Johnson - My developer journey towards true hybrid cloud with Kubernetes...
Matt Johnson - My developer journey towards true hybrid cloud with Kubernetes...Matt Johnson - My developer journey towards true hybrid cloud with Kubernetes...
Matt Johnson - My developer journey towards true hybrid cloud with Kubernetes...
 

Similar to Voice control with Amazon Alexa(for pacemaker conf)

IRJET- Automation using Alexa and Raspberry Pi
IRJET- Automation using Alexa and Raspberry PiIRJET- Automation using Alexa and Raspberry Pi
IRJET- Automation using Alexa and Raspberry PiIRJET Journal
 
Getting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless CloudGetting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless CloudAmazon Web Services
 
A Smarter World: The Mesh of Interconnected Devices and Artificial Intelligen...
A Smarter World: The Mesh of Interconnected Devices and Artificial Intelligen...A Smarter World: The Mesh of Interconnected Devices and Artificial Intelligen...
A Smarter World: The Mesh of Interconnected Devices and Artificial Intelligen...DEVCON
 
AWS March 2016 Webinar Series - AWS IoT Real Time Stream Processing with AWS ...
AWS March 2016 Webinar Series - AWS IoT Real Time Stream Processing with AWS ...AWS March 2016 Webinar Series - AWS IoT Real Time Stream Processing with AWS ...
AWS March 2016 Webinar Series - AWS IoT Real Time Stream Processing with AWS ...Amazon Web Services
 
Building End to end IoT solutions
Building End to end IoT solutionsBuilding End to end IoT solutions
Building End to end IoT solutionsAmazon Web Services
 
Getting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless CloudGetting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless CloudAmazon Web Services
 
AWS Startup Insights Kuala Lumpur
AWS Startup Insights Kuala LumpurAWS Startup Insights Kuala Lumpur
AWS Startup Insights Kuala LumpurAmazon Web Services
 
Primeros pasos con arquitecturas serverless
Primeros pasos con arquitecturas serverlessPrimeros pasos con arquitecturas serverless
Primeros pasos con arquitecturas serverlessAmazon Web Services
 
AWS September Webinar Series - Build Cross-Platform Mobile Apps with AWS and...
AWS September Webinar Series -  Build Cross-Platform Mobile Apps with AWS and...AWS September Webinar Series -  Build Cross-Platform Mobile Apps with AWS and...
AWS September Webinar Series - Build Cross-Platform Mobile Apps with AWS and...Amazon Web Services
 
[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker
[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker
[AWS Container Service] Getting Started with Cloud Map, App Mesh and FirecrackerAmazon Web Services Korea
 
Reply Labcamp Rome - AWS Zombie - Serverless and Microservices
Reply Labcamp Rome - AWS Zombie - Serverless and MicroservicesReply Labcamp Rome - AWS Zombie - Serverless and Microservices
Reply Labcamp Rome - AWS Zombie - Serverless and MicroservicesAndrea Mercanti
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesAmazon Web Services
 
AWS re:Invent 2016 : announcement, technical demos and feedbacks
AWS re:Invent 2016 : announcement, technical demos and feedbacksAWS re:Invent 2016 : announcement, technical demos and feedbacks
AWS re:Invent 2016 : announcement, technical demos and feedbacksEmmanuel Quentin
 
서버리스 IoT 백엔드 개발 및 구현 사례 : 윤석찬 (AWS 테크에반젤리스트)
서버리스 IoT 백엔드 개발 및 구현 사례 : 윤석찬 (AWS 테크에반젤리스트)서버리스 IoT 백엔드 개발 및 구현 사례 : 윤석찬 (AWS 테크에반젤리스트)
서버리스 IoT 백엔드 개발 및 구현 사례 : 윤석찬 (AWS 테크에반젤리스트)Amazon Web Services Korea
 
AWS Lambda: Event-driven Code for Devices and the Cloud
AWS Lambda: Event-driven Code for Devices and the CloudAWS Lambda: Event-driven Code for Devices and the Cloud
AWS Lambda: Event-driven Code for Devices and the CloudAmazon Web Services
 
Aws 101 garage+
Aws 101 garage+Aws 101 garage+
Aws 101 garage+Bruce Chen
 
AWS re:Invent 2016: NEW LAUNCH! Introducing AWS Greengrass (IOT201)
AWS re:Invent 2016: NEW LAUNCH! Introducing AWS Greengrass (IOT201)AWS re:Invent 2016: NEW LAUNCH! Introducing AWS Greengrass (IOT201)
AWS re:Invent 2016: NEW LAUNCH! Introducing AWS Greengrass (IOT201)Amazon Web Services
 
[OPD 2019] Automated Defense with Serverless computing
[OPD 2019] Automated Defense with Serverless computing[OPD 2019] Automated Defense with Serverless computing
[OPD 2019] Automated Defense with Serverless computingOWASP
 

Similar to Voice control with Amazon Alexa(for pacemaker conf) (20)

IRJET- Automation using Alexa and Raspberry Pi
IRJET- Automation using Alexa and Raspberry PiIRJET- Automation using Alexa and Raspberry Pi
IRJET- Automation using Alexa and Raspberry Pi
 
Getting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless CloudGetting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless Cloud
 
iNTRODUCTION TO AWS IOT
iNTRODUCTION TO AWS IOTiNTRODUCTION TO AWS IOT
iNTRODUCTION TO AWS IOT
 
A Smarter World: The Mesh of Interconnected Devices and Artificial Intelligen...
A Smarter World: The Mesh of Interconnected Devices and Artificial Intelligen...A Smarter World: The Mesh of Interconnected Devices and Artificial Intelligen...
A Smarter World: The Mesh of Interconnected Devices and Artificial Intelligen...
 
AWS March 2016 Webinar Series - AWS IoT Real Time Stream Processing with AWS ...
AWS March 2016 Webinar Series - AWS IoT Real Time Stream Processing with AWS ...AWS March 2016 Webinar Series - AWS IoT Real Time Stream Processing with AWS ...
AWS March 2016 Webinar Series - AWS IoT Real Time Stream Processing with AWS ...
 
Building End to end IoT solutions
Building End to end IoT solutionsBuilding End to end IoT solutions
Building End to end IoT solutions
 
Getting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless CloudGetting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless Cloud
 
AWS Startup Insights Kuala Lumpur
AWS Startup Insights Kuala LumpurAWS Startup Insights Kuala Lumpur
AWS Startup Insights Kuala Lumpur
 
Primeros pasos con arquitecturas serverless
Primeros pasos con arquitecturas serverlessPrimeros pasos con arquitecturas serverless
Primeros pasos con arquitecturas serverless
 
AWS September Webinar Series - Build Cross-Platform Mobile Apps with AWS and...
AWS September Webinar Series -  Build Cross-Platform Mobile Apps with AWS and...AWS September Webinar Series -  Build Cross-Platform Mobile Apps with AWS and...
AWS September Webinar Series - Build Cross-Platform Mobile Apps with AWS and...
 
[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker
[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker
[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker
 
Reply Labcamp Rome - AWS Zombie - Serverless and Microservices
Reply Labcamp Rome - AWS Zombie - Serverless and MicroservicesReply Labcamp Rome - AWS Zombie - Serverless and Microservices
Reply Labcamp Rome - AWS Zombie - Serverless and Microservices
 
AWS Startup Insights Singapore
AWS Startup Insights SingaporeAWS Startup Insights Singapore
AWS Startup Insights Singapore
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless Architectures
 
AWS re:Invent 2016 : announcement, technical demos and feedbacks
AWS re:Invent 2016 : announcement, technical demos and feedbacksAWS re:Invent 2016 : announcement, technical demos and feedbacks
AWS re:Invent 2016 : announcement, technical demos and feedbacks
 
서버리스 IoT 백엔드 개발 및 구현 사례 : 윤석찬 (AWS 테크에반젤리스트)
서버리스 IoT 백엔드 개발 및 구현 사례 : 윤석찬 (AWS 테크에반젤리스트)서버리스 IoT 백엔드 개발 및 구현 사례 : 윤석찬 (AWS 테크에반젤리스트)
서버리스 IoT 백엔드 개발 및 구현 사례 : 윤석찬 (AWS 테크에반젤리스트)
 
AWS Lambda: Event-driven Code for Devices and the Cloud
AWS Lambda: Event-driven Code for Devices and the CloudAWS Lambda: Event-driven Code for Devices and the Cloud
AWS Lambda: Event-driven Code for Devices and the Cloud
 
Aws 101 garage+
Aws 101 garage+Aws 101 garage+
Aws 101 garage+
 
AWS re:Invent 2016: NEW LAUNCH! Introducing AWS Greengrass (IOT201)
AWS re:Invent 2016: NEW LAUNCH! Introducing AWS Greengrass (IOT201)AWS re:Invent 2016: NEW LAUNCH! Introducing AWS Greengrass (IOT201)
AWS re:Invent 2016: NEW LAUNCH! Introducing AWS Greengrass (IOT201)
 
[OPD 2019] Automated Defense with Serverless computing
[OPD 2019] Automated Defense with Serverless computing[OPD 2019] Automated Defense with Serverless computing
[OPD 2019] Automated Defense with Serverless computing
 

More from Roman Tsypuk

Web Security training for Lohika.
Web Security training for Lohika.Web Security training for Lohika.
Web Security training for Lohika.Roman Tsypuk
 
Effective Java. By materials of Josch Bloch's book
Effective Java. By materials of Josch Bloch's bookEffective Java. By materials of Josch Bloch's book
Effective Java. By materials of Josch Bloch's bookRoman Tsypuk
 
Java agents are watching your ByteCode
Java agents are watching your ByteCodeJava agents are watching your ByteCode
Java agents are watching your ByteCodeRoman Tsypuk
 
IoT. GPS in our cars.
IoT. GPS in our cars.IoT. GPS in our cars.
IoT. GPS in our cars.Roman Tsypuk
 
Test Driven Documentation with Spring Rest Docs JEEConf2017
Test Driven Documentation with Spring Rest Docs JEEConf2017Test Driven Documentation with Spring Rest Docs JEEConf2017
Test Driven Documentation with Spring Rest Docs JEEConf2017Roman Tsypuk
 
Test Driven Documentation with Spring Rest Docs
Test Driven Documentation with Spring Rest DocsTest Driven Documentation with Spring Rest Docs
Test Driven Documentation with Spring Rest DocsRoman Tsypuk
 

More from Roman Tsypuk (6)

Web Security training for Lohika.
Web Security training for Lohika.Web Security training for Lohika.
Web Security training for Lohika.
 
Effective Java. By materials of Josch Bloch's book
Effective Java. By materials of Josch Bloch's bookEffective Java. By materials of Josch Bloch's book
Effective Java. By materials of Josch Bloch's book
 
Java agents are watching your ByteCode
Java agents are watching your ByteCodeJava agents are watching your ByteCode
Java agents are watching your ByteCode
 
IoT. GPS in our cars.
IoT. GPS in our cars.IoT. GPS in our cars.
IoT. GPS in our cars.
 
Test Driven Documentation with Spring Rest Docs JEEConf2017
Test Driven Documentation with Spring Rest Docs JEEConf2017Test Driven Documentation with Spring Rest Docs JEEConf2017
Test Driven Documentation with Spring Rest Docs JEEConf2017
 
Test Driven Documentation with Spring Rest Docs
Test Driven Documentation with Spring Rest DocsTest Driven Documentation with Spring Rest Docs
Test Driven Documentation with Spring Rest Docs
 

Recently uploaded

#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 

Recently uploaded (20)

#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 

Voice control with Amazon Alexa(for pacemaker conf)

  • 2. About me Sr Software engineer at Lohika, Altran Group Speaker at conferences, meetups, JUGs java, kotlin, spring boot, distributed systems, microservices, security, IoT Radio HAM, software defined radio 2 Tsypuk Roman
  • 3. Agenda 1. What is Amazon Alexa? 2. How to develop and apply skills? 3. How does smart home integration works? 4. AWS lambdas 5. Messaging under the hood 6. Smart Gateway 3
  • 4. Alexa 4 Cloud-based voice service available on tens of millions of devices from Amazon and third-party device manufacturers. With Alexa, you build natural voice experiences interact models NLP, voice recognition, self educating AI
  • 7. BMW & MINI Alexa integration Today, 8.5 million BMW Group models worldwide are already connected. From mid-2018 Amazon Alexa will be available in all BMW and MINI vehicles in USA, UK and Germany. 7https://www.youtube.com/watch?v=mHCI6lM_Zl8 “By making this step of integrating Alexa into our models from mid-2018, BMW and MINI will form a more intrinsic part of our customers’ digital lifestyles,” remarked Dieter May, Senior Vice President Digital Services and Business Models at the BMW Group.
  • 8. Skills 8 Flash Briefing defines audio/video/text content added to the brief of news “Alexa, tell me news” Custom everything is specified by developer Smart Home controls IoT devices like lights and thermostats “Alexa, dim the light” Video video content is sent in response “Alexa change to CNN”
  • 9. Flash Brief’s endpoint requirements 9 ● non-password-protected HTTPS endpoint ● either text(4500 characters) or audio content (256kbps mono or stereo MP3 10 minutes) ● JSON or RSS UTF-8 encoded ● available 24 hours a day/7 days a week ● items order from newest to oldest, based on the date. Alexa may ignore older items. ● each item in the feed should be unique and should not overlap with content in another feed item.
  • 11. Demo Flash Brief Skill “JAVA NEWS” Create Flash brief skill from the scratch Alexa tells us latest Java world news “Alexa give me latest news” 11
  • 13. AWS Lambda need to provision, manage server on-demande charged hourly based on compute capacity , reserved, spot need DNS, ELB, autoscaling, plus correct configuration and other techniques need manual security OS updates networking knowledge, routes to infrastructure <Any> 13 Lambda serverless compute service charged for 100ms running and number of time is triggered, no idle time payment scales in parallel on each trigger VS provisioning charge scaling security interaction runtime No infrastructure to maintain triggered (API GW, IoT, ASK,Kinesis, S3,SNS, CodeCommit, CloudWatch, CloudFront) C#, GO, Java, NodeJS, Python code
  • 14. Skills: Custom skill 14 service on other clouds, datacenters 2 Lambda 1
  • 15. Router for invocations 15 Lambda Alexa, ask “big brother” who is the winner ? Lambda ARN ARN Lambda ARN ... invocation
  • 16. Utterance-to-Intent mapping Alexa, ask “big brother” who is the winner ? Lambda utterance winner intent 1 intent N ... ● find the winner ● who is lucky ● who is the winner ● get the winner ● winner utterance 16
  • 17. “BIG BRO” Alexa will choose the winner from the audience. “Alexa, who is present?” “Alexa, get the winner” Demo Custom Skill 17
  • 20. Sequence diagram: Search devices UDP: HTTP http://ip:port/setup.xml “Alexa, find my devices” 20 UDP: UPnP broadcast message M-SEARCH TCP: HTTP GET ip:port/setup.xml TCP: HTTP RESPONSE “Starting discovery” “I have found 1 new device...”
  • 21. Sequence diagram: Device control 21 “Alexa, turn meeting room on” TCP: HTTP SOAP POST ip:port/control/basicevent1 TCP: HTTP SOAP RESPONSE “OK”
  • 24. End-to-End: How it works 24 Lambda 1
  • 25. Why not to create Local Lambdas for Alexa? 25
  • 27. Links 1. BMW annonce of Alexa devices promo https://www.youtube.com/watch?v=mHCI6lM_Zl8 2. Flash Brief requirements https://developer.amazon.com/docs/flashbriefing/flash- briefing-skill-api-feed-reference.html 3. Arduino WEMO switch https://github.com/kakopappa/arduino-esp8266-alexa- multiple-wemo-switch/blob/master/wemos/Switch.cpp 4. Alexa voice AI with filtering by AWS https://www.youtube.com/watch?v=2Bazibaz1F8 27

Editor's Notes

  1. Alexa, introduce yourself
  2. Alexa create 30sec timer ну и конечно же скилы -> переход на след слайд
  3. import com.amazon.speech.speechlet.servlet.SpeechletServlet; public class HelloWorldServlet extends SpeechletServlet public SpeechletResponse onLaunch( final LaunchRequest request, final Session session) throws SpeechletException {
  4. alexa find my devices