aws re:invent 2016: new launch! workshop: hands on with amazon lex, amazon polly, and amazon...
TRANSCRIPT
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon AI
November 30, 2016
NEW LAUNCH! Workshop: Hands on with
Amazon Lex, Amazon Polly, and Amazon
Rekognition
MAC308
Amazon Polly
• A service that converts text into lifelike speech
• Offers 47 lifelike voices across 24 languages
• Low latency responses enable developers to build
real-time systems
• Developers can store, replay and distribute
generated speech
Voicing your blog
https://github.com/awslabs/amazon-polly-sample
Architecture
RSS Feed Amazon Polly
Amazon
CloudWatch
Amazon S3AWS Lambda
1. Trigger
2. Check
3. Content
4. Text 5. Audio
6. Audio
Source
from boto3 import Session, resource
from contextlib import closing
polly = Session().client(”polly")
response = polly.synthesize_speech(
Text="Sample content",
OutputFormat="mp3", VoiceId="Joanna")
with closing(response["AudioStream"]) as stream:
bucket = resource("s3").Bucket("podcasts")
bucket.put_object(Key="output.mp3",
Body=stream.read())
Summary
RSS Feed Amazon Polly
Amazon
CloudWatch
Amazon S3AWS Lambda
1. Trigger
2. Check
3. Content
4. Text 5. Audio
6. Audio
Code & instructions
https://github.com/awslabs/amazon-polly-sample
What to Expect from the Session
Introduction to Amazon Lex
Create a movie bot to book tickets
Build Lex bot
Configure Lambda Functions
Wire Lex bot to Lambda Functions
Create Cognito Federated Identity Pool
Create Android App
Amazon Lex – Use Cases
Informational BotsChatbots for everyday consumer requests
Application BotsBuild powerful interfaces to mobile applications
• News updates
• Weather information
• Game scores ….
• Book tickets
• Order food
• Manage bank accounts ….
Enterprise Productivity BotsStreamline enterprise work activities and improve efficiencies
• Check sales numbers
• Marketing performance
• Inventory status ….
Internet of Things (IoT) BotsEnable conversational interfaces for device interactions
• Wearables
• Appliances
• Auto ….
Architecture
Mobile App Amazon Lex
Speech Recognition &
Natural Language
understanding
AWS Lambda:
Business Logic
Amazon CloudWatch
Monitoring
User input
Polly TTS
Speech
Text
…..
…..
DynamoDB
SNS
1:”Where is Trolls playing
tomorrow?”2: Amazon Lex recognizes that the user
wants to look up movie show times
4: Movie times are retrieved via
searchMovies () API
5: “Trolls is playing at
Movie Palace 16”
3: Amazon Lex engages in
multi-turn conversation to
get additional information
such as city, time, etc
Amazon Lex Benefits
High quality text and speech language
understanding
Built-in integration with the AWS platform
Seamlessly deploy and scale
Easy to use
Cost effective