Weitere ähnliche Inhalte Ähnlich wie 使用 Serverless 技術打造支援 Alexa 的物聯網服務 (20) Mehr von Amazon Web Services (20) Kürzlich hochgeladen (20) 使用 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
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
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
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
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