SlideShare ist ein Scribd-Unternehmen logo
1 von 26
Downloaden Sie, um offline zu lesen
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
January 2017
使用 Serverless 技術打造支援 Alexa
的物聯網服務
John Chang (張書源)
Today’s agenda
• Skill building fundamentals
• Voice User-Interface
• Advanced skill building
• Idea Challenge
70s 80s 90s 00s Present
mode
GUI
web
mobile
character
VUI
Skill Building Fundamentals
Before we code
1. developer.amazon.com
2. aws.amazon.com
8
The Alexa Service
Alexa
Skills
Kit
Alexa
Voice
Services
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
9
Alexa Skills Kit: Processing a request
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Audio
Request
Response
Your
service
Speech Recognition
Machine Learning
Natural Language Understanding
Text to Speech
Cards
10© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Cards
Alexa Skills Kit: Utterances and Intents
Response
Your
service
Audio
Speech Recognition
Machine Learning
Natural Language Understanding
Text to Speech
Request
Intents
Utterances
ASR – Automatic Speech
Recognition
fȯr tē tīmz
• Forty Times?
• For Tea Times?
• For Tee Times?
• Four Tee Times?
Alexa, ask Anime Facts for a fact
wake word utteranceskill namelaunch
Utterances and Intents
One more please
utterance
Utterances and Intents
Alexa, ask Anime Facts for a fact
wake word utteranceskill namelaunch
GetFactIntent
Intent
utterance slot value
Utterances and Intents
One more please
utterance
Alexa, ask Anime Facts for a fact
wake word utteranceskill namelaunch
15© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Audio
Speech Recognition
Machine Learning
Natural Language Understanding
Text to Speech
Cards
Alexa Skills Kit: Requests and Responses
Request
Response
Your
service
16
Alexa Skills Kit: Request and Response
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
“Help”
17
Using Lambda for Processing the
Request & generating the response
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
18
Time to code: Build a fact of the day skill
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
developer.amazon.com
Skill information
Interaction model
End to end testing
aws.amazon.com
Skill logic
Lambda
Lamdba testing
Check in for the event:
Bit.ly/alexacheckin – event name #Re:Invent
AnswerIntent {value: “one”}
slot valueIntent
one is the answer
slot value
Slots in the utterances
The answer is one
slot value
one
slot value
21
Utterances and Intent Schema
Utterances Intent Schema
22
Utterances and Intent Schema
Utterances Intent Schema
23
Built-in and Custom Slot Types
24
Session Attributes
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
25
Session Persistence
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
exports.handler = function (event, context, callback) {
var alexa = Alexa.handler(event, context);
alexa.appId = appId;
alexa.dynamoDBTableName = 'YourTableName'; // That's it!
alexa.registerHandlers(State1Handlers, State2Handlers);
alexa.execute();
};
this.attributes['yourAttribute'] = 'value';
var yourVariable = this.attributes['yourAttribute']
Add dynamoDB
table name in
your index.js
put
get
26
State Management
Define states
Event handlers
for “Trivia” state
Event handlers
for “Help” state
27
Time to code: Build a local search skill
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
developer.amazon.com
Skill information
Interaction model
End to end testing
aws.amazon.com
Skill logic
Lambda
Lamdba testing
Check in for the event:
Bit.ly/alexacheckin – event name #Re:Invent
Thank you!

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless Architectures
 
A Brief Look at Serverless Architecture
A Brief Look at Serverless ArchitectureA Brief Look at Serverless Architecture
A Brief Look at Serverless Architecture
 
Getting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingGetting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless Computing
 
Deep dive on Serverless application development
Deep dive on Serverless application developmentDeep dive on Serverless application development
Deep dive on Serverless application development
 
Amazon Batch: 實現簡單且有效率的批次運算
Amazon Batch: 實現簡單且有效率的批次運算Amazon Batch: 實現簡單且有效率的批次運算
Amazon Batch: 實現簡單且有效率的批次運算
 
Introduction to AWS Lambda and Serverless Applications
Introduction to AWS Lambda and Serverless ApplicationsIntroduction to AWS Lambda and Serverless Applications
Introduction to AWS Lambda and Serverless Applications
 
Raleigh DevDay 2017: Building serverless web applications
Raleigh DevDay 2017: Building serverless web applicationsRaleigh DevDay 2017: Building serverless web applications
Raleigh DevDay 2017: Building serverless web applications
 
Aws summit devops 云端多环境自动化运维和部署
Aws summit devops   云端多环境自动化运维和部署Aws summit devops   云端多环境自动化运维和部署
Aws summit devops 云端多环境自动化运维和部署
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless Architectures
 
使用 Blox 實現容器任務調度與資源編排
使用 Blox 實現容器任務調度與資源編排使用 Blox 實現容器任務調度與資源編排
使用 Blox 實現容器任務調度與資源編排
 
AWS Lambda and Serverless Cloud
AWS Lambda and Serverless CloudAWS Lambda and Serverless Cloud
AWS Lambda and Serverless Cloud
 
Serverless Architectures.pdf
Serverless Architectures.pdfServerless Architectures.pdf
Serverless Architectures.pdf
 
AWS re:Invent Recap 2016 Taiwan part 2
AWS re:Invent Recap 2016 Taiwan part 2AWS re:Invent Recap 2016 Taiwan part 2
AWS re:Invent Recap 2016 Taiwan part 2
 
Raleigh DevDay 2017: Build a serverless web application in one day workshop
Raleigh DevDay 2017: Build a serverless web application in one day workshopRaleigh DevDay 2017: Build a serverless web application in one day workshop
Raleigh DevDay 2017: Build a serverless web application in one day workshop
 
Deep Dive on Serverless Web Applications - AWS May 2016 Webinar Series
Deep Dive on Serverless Web Applications - AWS May 2016 Webinar SeriesDeep Dive on Serverless Web Applications - AWS May 2016 Webinar Series
Deep Dive on Serverless Web Applications - AWS May 2016 Webinar Series
 
Serverless Architecture
Serverless ArchitectureServerless Architecture
Serverless Architecture
 
AWS解決方案介紹和展示
AWS解決方案介紹和展示AWS解決方案介紹和展示
AWS解決方案介紹和展示
 
serverless_architecture_patterns_london_loft.pdf
serverless_architecture_patterns_london_loft.pdfserverless_architecture_patterns_london_loft.pdf
serverless_architecture_patterns_london_loft.pdf
 
Serverless for Developers
Serverless for DevelopersServerless for Developers
Serverless for Developers
 
AWS Lambda: Event-Driven Code in the Cloud
AWS Lambda: Event-Driven Code in the CloudAWS Lambda: Event-Driven Code in the Cloud
AWS Lambda: Event-Driven Code in the Cloud
 

Andere mochten auch

廣告學投影片
廣告學投影片廣告學投影片
廣告學投影片
Ernie Chang
 
天猫后端技术架构优化实践
天猫后端技术架构优化实践天猫后端技术架构优化实践
天猫后端技术架构优化实践
drewz lin
 

Andere mochten auch (20)

以AWS Lambda與Amazon API Gateway打造無伺服器後端
以AWS Lambda與Amazon API Gateway打造無伺服器後端以AWS Lambda與Amazon API Gateway打造無伺服器後端
以AWS Lambda與Amazon API Gateway打造無伺服器後端
 
透過 Amazon Polly 為你的應用程式加入語音功能
透過 Amazon Polly 為你的應用程式加入語音功能透過 Amazon Polly 為你的應用程式加入語音功能
透過 Amazon Polly 為你的應用程式加入語音功能
 
AWS Solutions Architect 準備心得
AWS Solutions Architect 準備心得AWS Solutions Architect 準備心得
AWS Solutions Architect 準備心得
 
Please meet Amazon Alexa and the Alexa Skills Kit
Please meet Amazon Alexa and the Alexa Skills KitPlease meet Amazon Alexa and the Alexa Skills Kit
Please meet Amazon Alexa and the Alexa Skills Kit
 
使用 AWS Step Functions 開發 Serverless 服務
使用 AWS Step Functions 開發 Serverless 服務使用 AWS Step Functions 開發 Serverless 服務
使用 AWS Step Functions 開發 Serverless 服務
 
使用 Amazon Rekognition 打造以深度學習為基礎的圖片辨識應用
使用 Amazon Rekognition 打造以深度學習為基礎的圖片辨識應用使用 Amazon Rekognition 打造以深度學習為基礎的圖片辨識應用
使用 Amazon Rekognition 打造以深度學習為基礎的圖片辨識應用
 
1. 利用微服務架構建立雲端影音平台 (Building Media Platform by Microservices Architecture)
1.	利用微服務架構建立雲端影音平台 (Building Media Platform by Microservices Architecture)1.	利用微服務架構建立雲端影音平台 (Building Media Platform by Microservices Architecture)
1. 利用微服務架構建立雲端影音平台 (Building Media Platform by Microservices Architecture)
 
無伺服器架構和Containers on AWS入門
無伺服器架構和Containers on AWS入門 無伺服器架構和Containers on AWS入門
無伺服器架構和Containers on AWS入門
 
從劍宗到氣宗 - 談AWS ECS與Serverless最佳實踐
從劍宗到氣宗  - 談AWS ECS與Serverless最佳實踐從劍宗到氣宗  - 談AWS ECS與Serverless最佳實踐
從劍宗到氣宗 - 談AWS ECS與Serverless最佳實踐
 
Introducing Amazon Machine Learning
Introducing Amazon Machine LearningIntroducing Amazon Machine Learning
Introducing Amazon Machine Learning
 
廣告學投影片
廣告學投影片廣告學投影片
廣告學投影片
 
AngularJS training in Luster
AngularJS training in LusterAngularJS training in Luster
AngularJS training in Luster
 
Amazon Machine Learning Tutorial
Amazon Machine Learning TutorialAmazon Machine Learning Tutorial
Amazon Machine Learning Tutorial
 
[JSDC 2015] Turf.js - 地理資訊的分析與地圖視覺化
[JSDC 2015] Turf.js - 地理資訊的分析與地圖視覺化[JSDC 2015] Turf.js - 地理資訊的分析與地圖視覺化
[JSDC 2015] Turf.js - 地理資訊的分析與地圖視覺化
 
Voxxed Days Thesaloniki 2016 - Machine Learning for Developers
Voxxed Days Thesaloniki 2016 - Machine Learning for DevelopersVoxxed Days Thesaloniki 2016 - Machine Learning for Developers
Voxxed Days Thesaloniki 2016 - Machine Learning for Developers
 
天猫后端技术架构优化实践
天猫后端技术架构优化实践天猫后端技术架构优化实践
天猫后端技术架构优化实践
 
AWS Machine Learning Workshp
AWS Machine Learning WorkshpAWS Machine Learning Workshp
AWS Machine Learning Workshp
 
以Device Shadows與Rules Engine串聯實體世界
以Device Shadows與Rules Engine串聯實體世界以Device Shadows與Rules Engine串聯實體世界
以Device Shadows與Rules Engine串聯實體世界
 
2016 電通安吉斯集團7品牌 暑期實習招生簡章
2016 電通安吉斯集團7品牌 暑期實習招生簡章2016 電通安吉斯集團7品牌 暑期實習招生簡章
2016 電通安吉斯集團7品牌 暑期實習招生簡章
 
Paganini+ OOH Media Deck
Paganini+ OOH Media DeckPaganini+ OOH Media Deck
Paganini+ OOH Media Deck
 

Ähnlich wie 使用 Serverless 技術打造支援 Alexa 的物聯網服務

Ähnlich wie 使用 Serverless 技術打造支援 Alexa 的物聯網服務 (20)

AWS re:Invent 2016: Workshop: Creating Voice Experiences with Alexa Skills: F...
AWS re:Invent 2016: Workshop: Creating Voice Experiences with Alexa Skills: F...AWS re:Invent 2016: Workshop: Creating Voice Experiences with Alexa Skills: F...
AWS re:Invent 2016: Workshop: Creating Voice Experiences with Alexa Skills: F...
 
Creating IoT Solutions with Serverless Architecture & Alexa
Creating IoT Solutions with Serverless Architecture & AlexaCreating IoT Solutions with Serverless Architecture & Alexa
Creating IoT Solutions with Serverless Architecture & Alexa
 
Building Alexa Skills with AWS | AWS Floor28
Building Alexa Skills with AWS | AWS Floor28Building Alexa Skills with AWS | AWS Floor28
Building Alexa Skills with AWS | AWS Floor28
 
Building Alexa Skills - Floor28
Building Alexa Skills - Floor28Building Alexa Skills - Floor28
Building Alexa Skills - Floor28
 
Bring the Power of AI to Your Amazon Connect Contact Center (BAP322-R1) - AWS...
Bring the Power of AI to Your Amazon Connect Contact Center (BAP322-R1) - AWS...Bring the Power of AI to Your Amazon Connect Contact Center (BAP322-R1) - AWS...
Bring the Power of AI to Your Amazon Connect Contact Center (BAP322-R1) - AWS...
 
NEW LAUNCH! Deploying and Managing Voice Skills in your Organization with Ale...
NEW LAUNCH! Deploying and Managing Voice Skills in your Organization with Ale...NEW LAUNCH! Deploying and Managing Voice Skills in your Organization with Ale...
NEW LAUNCH! Deploying and Managing Voice Skills in your Organization with Ale...
 
AWS Webinar - Learn how and why to build conversational chatbots
AWS Webinar - Learn how and why to build conversational chatbots AWS Webinar - Learn how and why to build conversational chatbots
AWS Webinar - Learn how and why to build conversational chatbots
 
Building your own chat bot with Amazon Lex - Hebrew Webinar
Building your own chat bot with Amazon Lex - Hebrew WebinarBuilding your own chat bot with Amazon Lex - Hebrew Webinar
Building your own chat bot with Amazon Lex - Hebrew Webinar
 
Lex and connect
Lex and connectLex and connect
Lex and connect
 
Serve Your Customers with AI from the Cloud: AWS Developer Workshop - Web Sum...
Serve Your Customers with AI from the Cloud: AWS Developer Workshop - Web Sum...Serve Your Customers with AI from the Cloud: AWS Developer Workshop - Web Sum...
Serve Your Customers with AI from the Cloud: AWS Developer Workshop - Web Sum...
 
Alexa for Device Makers: Create Products with Alexa Built-In Using AVS (ALX30...
Alexa for Device Makers: Create Products with Alexa Built-In Using AVS (ALX30...Alexa for Device Makers: Create Products with Alexa Built-In Using AVS (ALX30...
Alexa for Device Makers: Create Products with Alexa Built-In Using AVS (ALX30...
 
Build a Voice-Based Chatbot for Your Amazon Connect Contact Center (BAP401-R1...
Build a Voice-Based Chatbot for Your Amazon Connect Contact Center (BAP401-R1...Build a Voice-Based Chatbot for Your Amazon Connect Contact Center (BAP401-R1...
Build a Voice-Based Chatbot for Your Amazon Connect Contact Center (BAP401-R1...
 
Everything You Need for a Viral Game, Except the Game
Everything You Need for a Viral Game, Except the GameEverything You Need for a Viral Game, Except the Game
Everything You Need for a Viral Game, Except the Game
 
Enhancing Your Startup With Amazon AI
Enhancing Your Startup With Amazon AIEnhancing Your Startup With Amazon AI
Enhancing Your Startup With Amazon AI
 
Taking your Progressive Web App to the Next Level with GraphQL and AWS AppSync
Taking your Progressive Web App to the Next Level with GraphQL and AWS AppSyncTaking your Progressive Web App to the Next Level with GraphQL and AWS AppSync
Taking your Progressive Web App to the Next Level with GraphQL and AWS AppSync
 
Bringing the Superpower of Bots to Your Company with a Serverless Bot Solutio...
Bringing the Superpower of Bots to Your Company with a Serverless Bot Solutio...Bringing the Superpower of Bots to Your Company with a Serverless Bot Solutio...
Bringing the Superpower of Bots to Your Company with a Serverless Bot Solutio...
 
Use Amazon Rekognition to Build a Facial Recognition System
Use Amazon Rekognition to Build a Facial Recognition SystemUse Amazon Rekognition to Build a Facial Recognition System
Use Amazon Rekognition to Build a Facial Recognition System
 
Use Amazon Rekognition to Build a Facial Recognition System
Use Amazon Rekognition to Build a Facial Recognition SystemUse Amazon Rekognition to Build a Facial Recognition System
Use Amazon Rekognition to Build a Facial Recognition System
 
How to Enhance your Application using Amazon Comprehend for NLP - AWS Online ...
How to Enhance your Application using Amazon Comprehend for NLP - AWS Online ...How to Enhance your Application using Amazon Comprehend for NLP - AWS Online ...
How to Enhance your Application using Amazon Comprehend for NLP - AWS Online ...
 
MCL302_Maximizing the Customer Experience with AI on AWS
MCL302_Maximizing the Customer Experience with AI on AWSMCL302_Maximizing the Customer Experience with AI on AWS
MCL302_Maximizing the Customer Experience with AI on AWS
 

Mehr von Amazon Web Services

Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
Amazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
Amazon Web Services
 

Mehr von Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Kürzlich hochgeladen

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 

使用 Serverless 技術打造支援 Alexa 的物聯網服務

  • 1. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. January 2017 使用 Serverless 技術打造支援 Alexa 的物聯網服務 John Chang (張書源)
  • 2. Today’s agenda • Skill building fundamentals • Voice User-Interface • Advanced skill building • Idea Challenge
  • 3. 70s 80s 90s 00s Present mode GUI web mobile character VUI
  • 4.
  • 5.
  • 6. Skill Building Fundamentals Before we code 1. developer.amazon.com 2. aws.amazon.com
  • 7. 8 The Alexa Service Alexa Skills Kit Alexa Voice Services © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 8. 9 Alexa Skills Kit: Processing a request © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Audio Request Response Your service Speech Recognition Machine Learning Natural Language Understanding Text to Speech Cards
  • 9. 10© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Cards Alexa Skills Kit: Utterances and Intents Response Your service Audio Speech Recognition Machine Learning Natural Language Understanding Text to Speech Request Intents Utterances
  • 10. ASR – Automatic Speech Recognition fȯr tē tīmz • Forty Times? • For Tea Times? • For Tee Times? • Four Tee Times?
  • 11. Alexa, ask Anime Facts for a fact wake word utteranceskill namelaunch Utterances and Intents
  • 12. One more please utterance Utterances and Intents Alexa, ask Anime Facts for a fact wake word utteranceskill namelaunch
  • 13. GetFactIntent Intent utterance slot value Utterances and Intents One more please utterance Alexa, ask Anime Facts for a fact wake word utteranceskill namelaunch
  • 14. 15© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Audio Speech Recognition Machine Learning Natural Language Understanding Text to Speech Cards Alexa Skills Kit: Requests and Responses Request Response Your service
  • 15. 16 Alexa Skills Kit: Request and Response © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. “Help”
  • 16. 17 Using Lambda for Processing the Request & generating the response © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 17. 18 Time to code: Build a fact of the day skill © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. developer.amazon.com Skill information Interaction model End to end testing aws.amazon.com Skill logic Lambda Lamdba testing Check in for the event: Bit.ly/alexacheckin – event name #Re:Invent
  • 18. AnswerIntent {value: “one”} slot valueIntent one is the answer slot value Slots in the utterances The answer is one slot value one slot value
  • 19. 21 Utterances and Intent Schema Utterances Intent Schema
  • 20. 22 Utterances and Intent Schema Utterances Intent Schema
  • 22. 24 Session Attributes © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 23. 25 Session Persistence © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. exports.handler = function (event, context, callback) { var alexa = Alexa.handler(event, context); alexa.appId = appId; alexa.dynamoDBTableName = 'YourTableName'; // That's it! alexa.registerHandlers(State1Handlers, State2Handlers); alexa.execute(); }; this.attributes['yourAttribute'] = 'value'; var yourVariable = this.attributes['yourAttribute'] Add dynamoDB table name in your index.js put get
  • 24. 26 State Management Define states Event handlers for “Trivia” state Event handlers for “Help” state
  • 25. 27 Time to code: Build a local search skill © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. developer.amazon.com Skill information Interaction model End to end testing aws.amazon.com Skill logic Lambda Lamdba testing Check in for the event: Bit.ly/alexacheckin – event name #Re:Invent