SlideShare a Scribd company logo
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 AWS
Amazon 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 - DC
VMware Tanzu
 
Ignite eCommerce growth with AWS
Ignite eCommerce growth with AWSIgnite eCommerce growth with AWS
Ignite eCommerce growth with AWS
Amazon Web Services
 
Cloud-Native Roadshow - Solace - Denver
Cloud-Native Roadshow - Solace - DenverCloud-Native Roadshow - Solace - Denver
Cloud-Native Roadshow - Solace - Denver
VMware Tanzu
 
AWS Lambda
AWS LambdaAWS Lambda
Cloud-Native Roadshow - Solace - Atlanta
Cloud-Native Roadshow - Solace - AtlantaCloud-Native Roadshow - Solace - Atlanta
Cloud-Native Roadshow - Solace - Atlanta
VMware Tanzu
 
AWS Lambda Documentation
AWS Lambda DocumentationAWS Lambda Documentation
AWS Lambda Documentation
Whizlabs
 
AWS architecture and a human body
AWS architecture and a human bodyAWS architecture and a human body
AWS architecture and a human body
Ostap 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 London
Boaz 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 Valli
Oscar 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 Hull
Ian 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 Studies
Andrea Mercanti
 
Python on AWS Lambda
Python on AWS Lambda Python on AWS Lambda
Python on AWS Lambda
Amazon Web Services
 
AWS Architecture - GDC 2014
AWS Architecture - GDC 2014AWS Architecture - GDC 2014
AWS Architecture - GDC 2014
Amazon Web Services
 
AWS Amplify
AWS AmplifyAWS Amplify
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 Pi
IRJET 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 Cloud
Amazon Web Services
 
iNTRODUCTION TO AWS IOT
iNTRODUCTION TO AWS IOTiNTRODUCTION TO AWS IOT
iNTRODUCTION TO AWS IOT
Amazon 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 solutions
Amazon 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 Cloud
Amazon Web Services
 
AWS Startup Insights Kuala Lumpur
AWS Startup Insights Kuala LumpurAWS Startup Insights Kuala Lumpur
AWS Startup Insights Kuala Lumpur
Amazon Web Services
 
Primeros pasos con arquitecturas serverless
Primeros pasos con arquitecturas serverlessPrimeros pasos con arquitecturas serverless
Primeros pasos con arquitecturas serverless
Amazon 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 Firecracker
Amazon 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 Microservices
Andrea Mercanti
 
AWS Startup Insights Singapore
AWS Startup Insights SingaporeAWS Startup Insights Singapore
AWS Startup Insights Singapore
Amazon Web Services
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless Architectures
Amazon 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 feedbacks
Emmanuel 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 Cloud
Amazon 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 computing
OWASP
 

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 book
Roman Tsypuk
 
Java agents are watching your ByteCode
Java agents are watching your ByteCodeJava agents are watching your ByteCode
Java agents are watching your ByteCode
Roman 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 JEEConf2017
Roman 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 Docs
Roman 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

Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Zilliz
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
Pixlogix Infotech
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Zilliz
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 

Recently uploaded (20)

Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 

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