SlideShare a Scribd company logo
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS re:Invent
Integrate Alexa into Your Product
Using the Alexa Voice Service
Device SDK N o v e m b e r 2 8 , 2 0 1 7
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Meet the team!
Chris Keyser
Principal Solutions Architect, Alexa
Voice Service
Sanjay Devireddy
Software Development Engineer,
Alexa Voice Service
Gagan Luthra
Sr. Product Marketing Manager, Alexa
Voice Service
Fletcher Nelson
Solutions Architect, Alexa
Voice Service
Navneet Malpani
Principal Solutions Architect, Alexa
Voice Service
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Echo: The first Alexa-enabled device
“Amazon’s Echo might be the
most important product in years”
“Amazon Echo proves the viability
of voice-based home computing.”
“Amazon Alexa just conquered CES 2017.
The world is next.”
“Alexa is clearly the star of IFA 2017”
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Hi, Alexa… Hello!
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Smart home
control
Timers and alarms
Cloud-based
intelligence
Shopping
Music
News and
information
Custom skills
Always getting smarter
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon’s Alexa-enabled products
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Vision: Alexa anywhere
Home audio
Thermostats
Automobiles
Maker boards
Wearables
Small appliances
Smartphones
Large appliancesHome security
TV/video
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Alexa Voice Service
A l e x a - e n a b l e d p r o d u c t s
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Directives
Instructions sent from AVS to client
Events
Information sent from client to AVS
Voice hardware
Audio front end
Device software
AVS device SDK
Simplifying voice interaction
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
“Alexa, play music.”
Wake word
engine
Recognition result
Speech
platform
Skills
Music
Service
ASR
NLU
TTS
“Recognize” event
User’s utterance
Event
Alexa Voice Service
Speech
capture via
microphone
Play back
through
speaker
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
“Alexa, play music.”
Wake word
engine
Recognition result
Recognition resultSpeech
platform
Skills
Music
Service
ASR
NLU
TTS
“Recognize” event
User’s utterance
Event
Intent
Alexa Voice Service
Speech
capture via
microphone
Play back
through
speaker
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
“Alexa, play music.”
Wake word
engine
“Play” directive
Intent
Recognition result
Recognition resultSpeech
platform
Skills
Music
Service
ASR
NLU
TTS
“Recognize” event
User’s utterance
Event
Intent
Alexa Voice Service
Speech
capture via
microphone
Play back
through
speaker
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
“Alexa, play music.”
Wake word
engine
“Play” directive
Intent
Recognition result
Recognition result
Text/SSML
Speech
platform
Skills
Music
Service
ASR
NLU
TTS
“Recognize” event
Streaming URL
User’s utterance
Event
Alexa voice response
Directive
Intent
Alexa Voice Service
Speech
capture via
microphone
Play back
through
speaker
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Events and directives: Setting a timer
Recognize event
Speak directive
PCM
10 minutes starting now.
MP3
Alexa, set a timer for 10 minutes.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Events and directives: Setting a timer
Recognize event
Speak directive
SpeechStarted event
SpeechFinished event
SetAlertSucceeded event
AVS controller
AudioPlayer
Alert manager
PCM
SetAlert directive
Alert
store
AlertStarted event
AlertEnteredForeground event
Time passes…
Local management
10 minutes starting now.
MP3
Alexa, set a timer for 10 minutes.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What do events and directives look like?
Alexa, what time is it?Alexa, what time is it?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SpeechRecognizer.Recognize
2017-10-10 18:19:25
{
"event": {
"header": {
"dialogRequestId": "dialogRequestId-2fa1867c-bfe2-4113-9be0-325a1c466156",
"namespace": "SpeechRecognizer",
"name": "Recognize",
"messageId": "e4717a2e-16bb-4153-ae31-3068107542be"
},
"payload": {
"profile": "CLOSE_TALK",
"format": "AUDIO_L16_RATE_16000_CHANNELS_1"
}
},
"context": [
{
"header": {
"namespace": "AudioPlayer",
"name": "PlaybackState"
},
"payload": {
"token": "",
"playerActivity": "IDLE",
"offsetInMilliseconds": "0"
}
What do events and directives look like?
Event
Alexa, what time is it?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SpeechRecognizer.Recognize
2017-10-10 18:19:25
{
"event": {
"header": {
"dialogRequestId": "dialogRequestId-2fa1867c-bfe2-4113-9be0-325a1c466156",
"namespace": "SpeechRecognizer",
"name": "Recognize",
"messageId": "e4717a2e-16bb-4153-ae31-3068107542be"
},
"payload": {
"profile": "CLOSE_TALK",
"format": "AUDIO_L16_RATE_16000_CHANNELS_1"
}
},
"context": [
{
"header": {
"namespace": "AudioPlayer",
"name": "PlaybackState"
},
"payload": {
"token": "",
"playerActivity": "IDLE",
"offsetInMilliseconds": "0"
}
Speaker.SetMute
2017-10-10 18:19:27
{
"directive": {
"header": {
"dialogRequestId": "dialogRequestId-2fa1867c-bfe2-4113-9be0-325a1c466156",
"namespace": "Speaker",
"name": "SetMute",
"messageId": "27448793-7fc8-43bd-bed8-64d2e226717f"
},
"payload": {
"mute": false} } }
Directive
What do events and directives look like?
Event
Alexa, what time is it?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Event
SpeechRecognizer.Recognize
2017-10-10 18:19:25
{
"event": {
"header": {
"dialogRequestId": "dialogRequestId-2fa1867c-bfe2-4113-9be0-325a1c466156",
"namespace": "SpeechRecognizer",
"name": "Recognize",
"messageId": "e4717a2e-16bb-4153-ae31-3068107542be"
},
"payload": {
"profile": "CLOSE_TALK",
"format": "AUDIO_L16_RATE_16000_CHANNELS_1"
}
},
"context": [
{
"header": {
"namespace": "AudioPlayer",
"name": "PlaybackState"
},
"payload": {
"token": "",
"playerActivity": "IDLE",
"offsetInMilliseconds": "0"
}
Alexa, what time is it?
Speaker.SetMute
2017-10-10 18:19:27
{
"directive": {
"header": {
"dialogRequestId": "dialogRequestId-2fa1867c-bfe2-4113-9be0-325a1c466156",
"namespace": "Speaker",
"name": "SetMute",
"messageId": "27448793-7fc8-43bd-bed8-64d2e226717f"
},
"payload": {
"mute": false} } }
Directive
SpeechSynthesizer.Speak
2017-10-10 18:19:27
{
"directive": {
"header": {
"dialogRequestId": "dialogRequestId-2fa1867c-bfe2-4113-9be0-
325a1c466156",
"namespace": "SpeechSynthesizer",
"name": "Speak",
"messageId": "2cc2674d-04b6-44c3-aa89-4d06b065930c"
},
"payload": {
"url": "cid:DeviceTTSRenderer_670aa604-26ee-4cff-a053-
c33604bf68a4_1370789680",
"token": "amzn1.as-
ct.v1.Domain:Application:Notifications#ACRI#DeviceTTSRenderer_670aa604-
26ee-4cff-a053-c33604bf68a4",
"format": "AUDIO_MPEG"
}
Directive
It’s 1:15 p.m.
What do events and directives look like?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Introducing the AVS device SDK
• Develop commercial-grade device software for AVS products
• Provides C++-based libraries to:
• Process audio inputs
• Establish persistent connections with AVS
• Handle all Alexa interactions on the device
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AVS device SDK architecture
1. Audio input processor (AIP)
2. Wake word detection
3. Alexa communications library (ACL)
4. Alexa directive sequencer library (ADSL)
5. Capability agents
6. Activity focus manager library (AFML)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Capture and process audio
Shared data stream
• Pulls in audio data onto local device memory
Wake word engine
• Constantly examines the data in the shared data stream
• Compares it to onboard model for “Alexa” or other wake word
Audio input processor
• Sends audio data only when triggered
• Will continue to send audio until it receives a stop directive
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Exchange information with AVS
• ACL forwards directives to the ADSL
• Initiates a persistent downchannel stream
• Opens and closes bidirectional event streams
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Exchange information with AVS
HTTP/2 persistent connection
Event-specific stream
Downchannel stream Notifications
App-initiated actions
Recurring alerts
Music request
event
Play directive
Client device
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Deliver the instructions
Alexa directive
sequencer library
Directives
Alexa
communication
library
• Accepts directives from the ACL
• Sequences directives in correct order
• Forwards directives to their
appropriate capability agents
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Deliver the instructions
Capability
agent
AudioPlayer
Alexa directive
sequencer library
Play Directive
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Deliver the instructions
Capability
agent
Capability
agent
AlertsAudioPlayer
Alexa directive
sequencer library
Set Timer Directive
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Deliver the instructions
Capability
agent
Capability
agent
Capability
agent
SpeechSynthesizerAlertsAudioPlayer
Alexa directive
sequencer library
Speech Directive
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Prioritize user interactions
• The AFML controls which capability agents
may use the media player at any given time.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Prioritize user interactions
Alexa focus
manager library
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Prioritize user interactions
Alexa focus
manager library
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Prioritize user interactions
Alexa focus
manager library
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Prioritize user interactions
Channel priority Capability agents
1. Dialog SpeechRecognizer,
SpeechSynthesizer
2. Alerts Alerts
3. Content AudioPlayer
Alexa focus
manager library
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Perform specific functions
SpeechRecognizer
Speech capture
SpeechSynthesizer
Alexa speech output
AudioPlayer
Control music playback
Alerts
Timers and alarms
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Perform specific functions
Notifications
Cloud-initiated messages
System
Communicate status to AVS
PlaybackController
Start/stop/skip track using buttons
TemplateRuntime
Render visual metadata
Speaker
Volume control (incl. mute)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AVS device SDK interaction
Alexa, what’s today’s weather?
“Alexa”
Automated speech
recognition (ASR)
Natural language
understanding (NLU)
Text to speech (TTS)
Skills
Weather
Recognize intent
AVS capability
Stream text/URL
SDK module (source)
Audio signal processor Media player
Wake word
detection
Wake word engine
Shared data
stream
Audio input
processor
Alexa
communication
library
Alexa directive
sequencer
library
Alexa focus
manager library
Capability
agent
External interfaceAlexa Voice Service Client (binary)
It’s 60 degrees and raining in Seattle.
Event
Recognize speech
Music
service
Directive
Alexa Voice Service
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AVS device SDK is…
Portable - Extensible - Modular - Accessible
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
• Set up the SDK on Linux, MacOS, or Raspberry Pi
• Extend to many hardware platforms
• Garmin cross-compiled the SDK to Android OS
Portable - Extensible - Modular - Accessible
AVS Device SDK is…
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
• Add new features with a minimum of glue
code
• Hisense wrote their own capability agent to
implement display cards.
AVS Device SDK is…
Portable - Extensible - Modular - Accessible
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
• Use libraries you need, discard what you don’t
• Choose your own wake word engine
• Sonos used their own media player.
AVS Device SDK is…
Portable - Extensible - Modular - Accessible
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
• SDK C++ source code available on GitHub—no
cost to experiment, prototype, and build
• Modify behaviors to enhance product-specific UX
AVS Device SDK is…
Portable - Extensible - Modular - Accessible
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Prototype with the
AVS Device SDK sample app
• Use a commercial-grade SoC
or Raspberry Pi
• Hands-free implementation
with “Alexa” wake word
detection NXP PICO-i.MX7D Raspberry Pi
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Build the AVS device SDK
Open your workshop kit and power up your Raspberry Pi!
Follow the instructions in your lab manual at:
https://avs-sdk-workshop.github.io/
W o r k s h o p a c t i v i t y :
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank you!
I n t e g r a t e A l e x a i n t o Y o u r
P r o d u c t U s i n g t h e A V S
D e v i c e S D K
Visit the Alexa developer portal
for more information:
Documentation, tutorials ,webinars, and more
https://developer.amazon.com/alexa
AVS: Alexa Voice Service
https://developer.amazon.com/avs
ASK: Create custom skills for Alexa
https://developer.amazon.com/ask
Smart home:
https://developer.amazon.com/alexa/smart-
home

More Related Content

What's hot

DevOps on AWS
DevOps on AWSDevOps on AWS
DevOps on AWS
Amazon Web Services
 
Amazon alexa - building custom skills
Amazon alexa - building custom skillsAmazon alexa - building custom skills
Amazon alexa - building custom skills
Aniruddha Chakrabarti
 
Amazon Alexa
Amazon AlexaAmazon Alexa
Amazon Alexa
Akhil john
 
Developer Tools at AWS 2018.pdf
Developer Tools at AWS 2018.pdfDeveloper Tools at AWS 2018.pdf
Developer Tools at AWS 2018.pdf
Amazon Web Services
 
Speech Recognition Using Python | Edureka
Speech Recognition Using Python | EdurekaSpeech Recognition Using Python | Edureka
Speech Recognition Using Python | Edureka
Edureka!
 
AWS vs Azure vs Google (GCP) - Slides
AWS vs Azure vs Google (GCP) - SlidesAWS vs Azure vs Google (GCP) - Slides
AWS vs Azure vs Google (GCP) - Slides
TobyWilman
 
Introduction to DevOps on AWS
Introduction to DevOps on AWSIntroduction to DevOps on AWS
Introduction to DevOps on AWS
Shiva Narayanaswamy
 
Android mp3 player
Android mp3 playerAndroid mp3 player
Android mp3 player
Subhrajit Das
 
ROS 2 AI Integration Working Group 1: ALMA, SustainML & ROS 2 use case
ROS 2 AI Integration Working Group 1: ALMA, SustainML & ROS 2 use case ROS 2 AI Integration Working Group 1: ALMA, SustainML & ROS 2 use case
ROS 2 AI Integration Working Group 1: ALMA, SustainML & ROS 2 use case
eProsima
 
Alexa skill development
Alexa skill developmentAlexa skill development
Alexa skill development
Goran Vuksic
 
AWS Summit Seoul 2023 | 성공적인 AWS RDS 마이그레이션을 위한 여정과 필수 고려사항
AWS Summit Seoul 2023 | 성공적인 AWS RDS 마이그레이션을 위한 여정과 필수 고려사항AWS Summit Seoul 2023 | 성공적인 AWS RDS 마이그레이션을 위한 여정과 필수 고려사항
AWS Summit Seoul 2023 | 성공적인 AWS RDS 마이그레이션을 위한 여정과 필수 고려사항
Amazon Web Services Korea
 
Serverless Computing
Serverless ComputingServerless Computing
Serverless Computing
Simon Crossley
 
Alexa skill
Alexa skillAlexa skill
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
Amazon Web Services
 
Gobierno de apis
Gobierno de apisGobierno de apis
Gobierno de apis
CloudAppi
 
Serverless Computing: build and run applications without thinking about servers
Serverless Computing: build and run applications without thinking about serversServerless Computing: build and run applications without thinking about servers
Serverless Computing: build and run applications without thinking about servers
Amazon Web Services
 
AWS Code Services
AWS Code ServicesAWS Code Services
AWS Code Services
Amazon Web Services
 
컴퓨팅 분야 신규 서비스 - 조상만, AWS 솔루션즈 아키텍트 :: AWS re:Invent re:Cap 2021
컴퓨팅 분야 신규 서비스 - 조상만, AWS 솔루션즈 아키텍트 :: AWS re:Invent re:Cap 2021컴퓨팅 분야 신규 서비스 - 조상만, AWS 솔루션즈 아키텍트 :: AWS re:Invent re:Cap 2021
컴퓨팅 분야 신규 서비스 - 조상만, AWS 솔루션즈 아키텍트 :: AWS re:Invent re:Cap 2021
Amazon Web Services Korea
 
Getting Started with Amazon EC2
Getting Started with Amazon EC2Getting Started with Amazon EC2
Getting Started with Amazon EC2
Amazon Web Services
 
Introduction to Google App Engine
Introduction to Google App EngineIntroduction to Google App Engine
Introduction to Google App Engine
Chakkrit (Kla) Tantithamthavorn
 

What's hot (20)

DevOps on AWS
DevOps on AWSDevOps on AWS
DevOps on AWS
 
Amazon alexa - building custom skills
Amazon alexa - building custom skillsAmazon alexa - building custom skills
Amazon alexa - building custom skills
 
Amazon Alexa
Amazon AlexaAmazon Alexa
Amazon Alexa
 
Developer Tools at AWS 2018.pdf
Developer Tools at AWS 2018.pdfDeveloper Tools at AWS 2018.pdf
Developer Tools at AWS 2018.pdf
 
Speech Recognition Using Python | Edureka
Speech Recognition Using Python | EdurekaSpeech Recognition Using Python | Edureka
Speech Recognition Using Python | Edureka
 
AWS vs Azure vs Google (GCP) - Slides
AWS vs Azure vs Google (GCP) - SlidesAWS vs Azure vs Google (GCP) - Slides
AWS vs Azure vs Google (GCP) - Slides
 
Introduction to DevOps on AWS
Introduction to DevOps on AWSIntroduction to DevOps on AWS
Introduction to DevOps on AWS
 
Android mp3 player
Android mp3 playerAndroid mp3 player
Android mp3 player
 
ROS 2 AI Integration Working Group 1: ALMA, SustainML & ROS 2 use case
ROS 2 AI Integration Working Group 1: ALMA, SustainML & ROS 2 use case ROS 2 AI Integration Working Group 1: ALMA, SustainML & ROS 2 use case
ROS 2 AI Integration Working Group 1: ALMA, SustainML & ROS 2 use case
 
Alexa skill development
Alexa skill developmentAlexa skill development
Alexa skill development
 
AWS Summit Seoul 2023 | 성공적인 AWS RDS 마이그레이션을 위한 여정과 필수 고려사항
AWS Summit Seoul 2023 | 성공적인 AWS RDS 마이그레이션을 위한 여정과 필수 고려사항AWS Summit Seoul 2023 | 성공적인 AWS RDS 마이그레이션을 위한 여정과 필수 고려사항
AWS Summit Seoul 2023 | 성공적인 AWS RDS 마이그레이션을 위한 여정과 필수 고려사항
 
Serverless Computing
Serverless ComputingServerless Computing
Serverless Computing
 
Alexa skill
Alexa skillAlexa skill
Alexa skill
 
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
 
Gobierno de apis
Gobierno de apisGobierno de apis
Gobierno de apis
 
Serverless Computing: build and run applications without thinking about servers
Serverless Computing: build and run applications without thinking about serversServerless Computing: build and run applications without thinking about servers
Serverless Computing: build and run applications without thinking about servers
 
AWS Code Services
AWS Code ServicesAWS Code Services
AWS Code Services
 
컴퓨팅 분야 신규 서비스 - 조상만, AWS 솔루션즈 아키텍트 :: AWS re:Invent re:Cap 2021
컴퓨팅 분야 신규 서비스 - 조상만, AWS 솔루션즈 아키텍트 :: AWS re:Invent re:Cap 2021컴퓨팅 분야 신규 서비스 - 조상만, AWS 솔루션즈 아키텍트 :: AWS re:Invent re:Cap 2021
컴퓨팅 분야 신규 서비스 - 조상만, AWS 솔루션즈 아키텍트 :: AWS re:Invent re:Cap 2021
 
Getting Started with Amazon EC2
Getting Started with Amazon EC2Getting Started with Amazon EC2
Getting Started with Amazon EC2
 
Introduction to Google App Engine
Introduction to Google App EngineIntroduction to Google App Engine
Introduction to Google App Engine
 

Similar to ALX307_Integrate Alexa into Your Product

ALX202_Integrate Alexa voice technology into your product with the Alexa Voic...
ALX202_Integrate Alexa voice technology into your product with the Alexa Voic...ALX202_Integrate Alexa voice technology into your product with the Alexa Voic...
ALX202_Integrate Alexa voice technology into your product with the Alexa Voic...
Amazon Web Services
 
Voice Assistants Beyond Smart Speakers - Integrate Alexa into Your Unique Pro...
Voice Assistants Beyond Smart Speakers - Integrate Alexa into Your Unique Pro...Voice Assistants Beyond Smart Speakers - Integrate Alexa into Your Unique Pro...
Voice Assistants Beyond Smart Speakers - Integrate Alexa into Your Unique Pro...
Amazon Web Services
 
Building Multichannel Conversational Interfaces Using Amazon Lex - MCL312 - r...
Building Multichannel Conversational Interfaces Using Amazon Lex - MCL312 - r...Building Multichannel Conversational Interfaces Using Amazon Lex - MCL312 - r...
Building Multichannel Conversational Interfaces Using Amazon Lex - MCL312 - r...
Amazon Web Services
 
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...
Amazon Web Services
 
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
Amazon Web Services
 
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
Amazon Web Services
 
Deliver Voice Automated Serverless BI Solutions in Under 3 Hours - ABD325 - r...
Deliver Voice Automated Serverless BI Solutions in Under 3 Hours - ABD325 - r...Deliver Voice Automated Serverless BI Solutions in Under 3 Hours - ABD325 - r...
Deliver Voice Automated Serverless BI Solutions in Under 3 Hours - ABD325 - r...
Amazon Web Services
 
Intro to Amazon AI Services
Intro to Amazon AI ServicesIntro to Amazon AI Services
Intro to Amazon AI Services
Amazon Web Services
 
An Introduction to AI Services on AWS - Web Summit Lisbon
An Introduction to AI Services on AWS -  Web Summit LisbonAn Introduction to AI Services on AWS -  Web Summit Lisbon
An Introduction to AI Services on AWS - Web Summit Lisbon
Boaz Ziniman
 
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...
Amazon Web Services
 
AI Services on AWS - CTO Club JLM
AI Services on AWS - CTO Club JLMAI Services on AWS - CTO Club JLM
AI Services on AWS - CTO Club JLM
Boaz Ziniman
 
NEW LAUNCH! AWS IoT Device Management - IOT330 - re:Invent 2017
NEW LAUNCH! AWS IoT Device Management - IOT330 - re:Invent 2017NEW LAUNCH! AWS IoT Device Management - IOT330 - re:Invent 2017
NEW LAUNCH! AWS IoT Device Management - IOT330 - re:Invent 2017
Amazon Web Services
 
Bring Alexa to Work - ENT306 - Chicago AWS Summit
Bring Alexa to Work - ENT306 - Chicago AWS SummitBring Alexa to Work - ENT306 - Chicago AWS Summit
Bring Alexa to Work - ENT306 - Chicago AWS Summit
Amazon Web Services
 
ALX328_Smart Devices Everywhere
ALX328_Smart Devices EverywhereALX328_Smart Devices Everywhere
ALX328_Smart Devices Everywhere
Amazon Web Services
 
Smart Devices Everywhere - ALX328 - re:Invent 2017
Smart Devices Everywhere - ALX328 - re:Invent 2017Smart Devices Everywhere - ALX328 - re:Invent 2017
Smart Devices Everywhere - ALX328 - re:Invent 2017
Amazon Web Services
 
Building .NET-based Serverless Architectures and Running .NET Core Microservi...
Building .NET-based Serverless Architectures and Running .NET Core Microservi...Building .NET-based Serverless Architectures and Running .NET Core Microservi...
Building .NET-based Serverless Architectures and Running .NET Core Microservi...
Amazon Web Services
 
利用 Alexa for Business 強您您的組織
利用 Alexa for Business 強您您的組織利用 Alexa for Business 強您您的組織
利用 Alexa for Business 強您您的組織
Amazon Web Services
 
Podcasting on AWS – A Discussion on Everything from Production to Distributio...
Podcasting on AWS – A Discussion on Everything from Production to Distributio...Podcasting on AWS – A Discussion on Everything from Production to Distributio...
Podcasting on AWS – A Discussion on Everything from Production to Distributio...
Amazon Web Services
 
Devoxx: Building AI-powered applications on AWS
Devoxx: Building AI-powered applications on AWSDevoxx: Building AI-powered applications on AWS
Devoxx: Building AI-powered applications on AWS
Adrian Hornsby
 
CTD405_Building Serverless Video Workflows
CTD405_Building Serverless Video WorkflowsCTD405_Building Serverless Video Workflows
CTD405_Building Serverless Video Workflows
Amazon Web Services
 

Similar to ALX307_Integrate Alexa into Your Product (20)

ALX202_Integrate Alexa voice technology into your product with the Alexa Voic...
ALX202_Integrate Alexa voice technology into your product with the Alexa Voic...ALX202_Integrate Alexa voice technology into your product with the Alexa Voic...
ALX202_Integrate Alexa voice technology into your product with the Alexa Voic...
 
Voice Assistants Beyond Smart Speakers - Integrate Alexa into Your Unique Pro...
Voice Assistants Beyond Smart Speakers - Integrate Alexa into Your Unique Pro...Voice Assistants Beyond Smart Speakers - Integrate Alexa into Your Unique Pro...
Voice Assistants Beyond Smart Speakers - Integrate Alexa into Your Unique Pro...
 
Building Multichannel Conversational Interfaces Using Amazon Lex - MCL312 - r...
Building Multichannel Conversational Interfaces Using Amazon Lex - MCL312 - r...Building Multichannel Conversational Interfaces Using Amazon Lex - MCL312 - r...
Building Multichannel Conversational Interfaces Using Amazon Lex - MCL312 - r...
 
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...
 
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
 
Deliver Voice Automated Serverless BI Solutions in Under 3 Hours - ABD325 - r...
Deliver Voice Automated Serverless BI Solutions in Under 3 Hours - ABD325 - r...Deliver Voice Automated Serverless BI Solutions in Under 3 Hours - ABD325 - r...
Deliver Voice Automated Serverless BI Solutions in Under 3 Hours - ABD325 - r...
 
Intro to Amazon AI Services
Intro to Amazon AI ServicesIntro to Amazon AI Services
Intro to Amazon AI Services
 
An Introduction to AI Services on AWS - Web Summit Lisbon
An Introduction to AI Services on AWS -  Web Summit LisbonAn Introduction to AI Services on AWS -  Web Summit Lisbon
An Introduction to AI Services on AWS - Web Summit Lisbon
 
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...
 
AI Services on AWS - CTO Club JLM
AI Services on AWS - CTO Club JLMAI Services on AWS - CTO Club JLM
AI Services on AWS - CTO Club JLM
 
NEW LAUNCH! AWS IoT Device Management - IOT330 - re:Invent 2017
NEW LAUNCH! AWS IoT Device Management - IOT330 - re:Invent 2017NEW LAUNCH! AWS IoT Device Management - IOT330 - re:Invent 2017
NEW LAUNCH! AWS IoT Device Management - IOT330 - re:Invent 2017
 
Bring Alexa to Work - ENT306 - Chicago AWS Summit
Bring Alexa to Work - ENT306 - Chicago AWS SummitBring Alexa to Work - ENT306 - Chicago AWS Summit
Bring Alexa to Work - ENT306 - Chicago AWS Summit
 
ALX328_Smart Devices Everywhere
ALX328_Smart Devices EverywhereALX328_Smart Devices Everywhere
ALX328_Smart Devices Everywhere
 
Smart Devices Everywhere - ALX328 - re:Invent 2017
Smart Devices Everywhere - ALX328 - re:Invent 2017Smart Devices Everywhere - ALX328 - re:Invent 2017
Smart Devices Everywhere - ALX328 - re:Invent 2017
 
Building .NET-based Serverless Architectures and Running .NET Core Microservi...
Building .NET-based Serverless Architectures and Running .NET Core Microservi...Building .NET-based Serverless Architectures and Running .NET Core Microservi...
Building .NET-based Serverless Architectures and Running .NET Core Microservi...
 
利用 Alexa for Business 強您您的組織
利用 Alexa for Business 強您您的組織利用 Alexa for Business 強您您的組織
利用 Alexa for Business 強您您的組織
 
Podcasting on AWS – A Discussion on Everything from Production to Distributio...
Podcasting on AWS – A Discussion on Everything from Production to Distributio...Podcasting on AWS – A Discussion on Everything from Production to Distributio...
Podcasting on AWS – A Discussion on Everything from Production to Distributio...
 
Devoxx: Building AI-powered applications on AWS
Devoxx: Building AI-powered applications on AWSDevoxx: Building AI-powered applications on AWS
Devoxx: Building AI-powered applications on AWS
 
CTD405_Building Serverless Video Workflows
CTD405_Building Serverless Video WorkflowsCTD405_Building Serverless Video Workflows
CTD405_Building Serverless Video Workflows
 

More from Amazon Web Services

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...
Amazon Web Services
 
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...
Amazon Web Services
 
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
Amazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
Amazon Web Services
 
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
Amazon Web Services
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
Amazon Web Services
 
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...
Amazon Web Services
 
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...
Amazon Web Services
 
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
Amazon Web Services
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
Amazon Web Services
 
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
Amazon Web Services
 
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
Amazon Web Services
 
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
Amazon Web Services
 
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
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 AWSAmazon 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 DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon 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
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
Amazon Web Services
 

More from 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
 

ALX307_Integrate Alexa into Your Product

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS re:Invent Integrate Alexa into Your Product Using the Alexa Voice Service Device SDK N o v e m b e r 2 8 , 2 0 1 7
  • 2. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Meet the team! Chris Keyser Principal Solutions Architect, Alexa Voice Service Sanjay Devireddy Software Development Engineer, Alexa Voice Service Gagan Luthra Sr. Product Marketing Manager, Alexa Voice Service Fletcher Nelson Solutions Architect, Alexa Voice Service Navneet Malpani Principal Solutions Architect, Alexa Voice Service
  • 3. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Echo: The first Alexa-enabled device “Amazon’s Echo might be the most important product in years” “Amazon Echo proves the viability of voice-based home computing.” “Amazon Alexa just conquered CES 2017. The world is next.” “Alexa is clearly the star of IFA 2017”
  • 4. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Hi, Alexa… Hello!
  • 5. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Smart home control Timers and alarms Cloud-based intelligence Shopping Music News and information Custom skills Always getting smarter
  • 6. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon’s Alexa-enabled products
  • 7. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Vision: Alexa anywhere Home audio Thermostats Automobiles Maker boards Wearables Small appliances Smartphones Large appliancesHome security TV/video
  • 8. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Alexa Voice Service A l e x a - e n a b l e d p r o d u c t s
  • 9. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Directives Instructions sent from AVS to client Events Information sent from client to AVS Voice hardware Audio front end Device software AVS device SDK Simplifying voice interaction
  • 10. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. “Alexa, play music.” Wake word engine Recognition result Speech platform Skills Music Service ASR NLU TTS “Recognize” event User’s utterance Event Alexa Voice Service Speech capture via microphone Play back through speaker
  • 11. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. “Alexa, play music.” Wake word engine Recognition result Recognition resultSpeech platform Skills Music Service ASR NLU TTS “Recognize” event User’s utterance Event Intent Alexa Voice Service Speech capture via microphone Play back through speaker
  • 12. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. “Alexa, play music.” Wake word engine “Play” directive Intent Recognition result Recognition resultSpeech platform Skills Music Service ASR NLU TTS “Recognize” event User’s utterance Event Intent Alexa Voice Service Speech capture via microphone Play back through speaker
  • 13. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. “Alexa, play music.” Wake word engine “Play” directive Intent Recognition result Recognition result Text/SSML Speech platform Skills Music Service ASR NLU TTS “Recognize” event Streaming URL User’s utterance Event Alexa voice response Directive Intent Alexa Voice Service Speech capture via microphone Play back through speaker
  • 14. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Events and directives: Setting a timer Recognize event Speak directive PCM 10 minutes starting now. MP3 Alexa, set a timer for 10 minutes.
  • 15. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Events and directives: Setting a timer Recognize event Speak directive SpeechStarted event SpeechFinished event SetAlertSucceeded event AVS controller AudioPlayer Alert manager PCM SetAlert directive Alert store AlertStarted event AlertEnteredForeground event Time passes… Local management 10 minutes starting now. MP3 Alexa, set a timer for 10 minutes.
  • 16. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What do events and directives look like? Alexa, what time is it?Alexa, what time is it?
  • 17. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SpeechRecognizer.Recognize 2017-10-10 18:19:25 { "event": { "header": { "dialogRequestId": "dialogRequestId-2fa1867c-bfe2-4113-9be0-325a1c466156", "namespace": "SpeechRecognizer", "name": "Recognize", "messageId": "e4717a2e-16bb-4153-ae31-3068107542be" }, "payload": { "profile": "CLOSE_TALK", "format": "AUDIO_L16_RATE_16000_CHANNELS_1" } }, "context": [ { "header": { "namespace": "AudioPlayer", "name": "PlaybackState" }, "payload": { "token": "", "playerActivity": "IDLE", "offsetInMilliseconds": "0" } What do events and directives look like? Event Alexa, what time is it?
  • 18. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SpeechRecognizer.Recognize 2017-10-10 18:19:25 { "event": { "header": { "dialogRequestId": "dialogRequestId-2fa1867c-bfe2-4113-9be0-325a1c466156", "namespace": "SpeechRecognizer", "name": "Recognize", "messageId": "e4717a2e-16bb-4153-ae31-3068107542be" }, "payload": { "profile": "CLOSE_TALK", "format": "AUDIO_L16_RATE_16000_CHANNELS_1" } }, "context": [ { "header": { "namespace": "AudioPlayer", "name": "PlaybackState" }, "payload": { "token": "", "playerActivity": "IDLE", "offsetInMilliseconds": "0" } Speaker.SetMute 2017-10-10 18:19:27 { "directive": { "header": { "dialogRequestId": "dialogRequestId-2fa1867c-bfe2-4113-9be0-325a1c466156", "namespace": "Speaker", "name": "SetMute", "messageId": "27448793-7fc8-43bd-bed8-64d2e226717f" }, "payload": { "mute": false} } } Directive What do events and directives look like? Event Alexa, what time is it?
  • 19. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Event SpeechRecognizer.Recognize 2017-10-10 18:19:25 { "event": { "header": { "dialogRequestId": "dialogRequestId-2fa1867c-bfe2-4113-9be0-325a1c466156", "namespace": "SpeechRecognizer", "name": "Recognize", "messageId": "e4717a2e-16bb-4153-ae31-3068107542be" }, "payload": { "profile": "CLOSE_TALK", "format": "AUDIO_L16_RATE_16000_CHANNELS_1" } }, "context": [ { "header": { "namespace": "AudioPlayer", "name": "PlaybackState" }, "payload": { "token": "", "playerActivity": "IDLE", "offsetInMilliseconds": "0" } Alexa, what time is it? Speaker.SetMute 2017-10-10 18:19:27 { "directive": { "header": { "dialogRequestId": "dialogRequestId-2fa1867c-bfe2-4113-9be0-325a1c466156", "namespace": "Speaker", "name": "SetMute", "messageId": "27448793-7fc8-43bd-bed8-64d2e226717f" }, "payload": { "mute": false} } } Directive SpeechSynthesizer.Speak 2017-10-10 18:19:27 { "directive": { "header": { "dialogRequestId": "dialogRequestId-2fa1867c-bfe2-4113-9be0- 325a1c466156", "namespace": "SpeechSynthesizer", "name": "Speak", "messageId": "2cc2674d-04b6-44c3-aa89-4d06b065930c" }, "payload": { "url": "cid:DeviceTTSRenderer_670aa604-26ee-4cff-a053- c33604bf68a4_1370789680", "token": "amzn1.as- ct.v1.Domain:Application:Notifications#ACRI#DeviceTTSRenderer_670aa604- 26ee-4cff-a053-c33604bf68a4", "format": "AUDIO_MPEG" } Directive It’s 1:15 p.m. What do events and directives look like?
  • 20. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Introducing the AVS device SDK • Develop commercial-grade device software for AVS products • Provides C++-based libraries to: • Process audio inputs • Establish persistent connections with AVS • Handle all Alexa interactions on the device
  • 21. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AVS device SDK architecture 1. Audio input processor (AIP) 2. Wake word detection 3. Alexa communications library (ACL) 4. Alexa directive sequencer library (ADSL) 5. Capability agents 6. Activity focus manager library (AFML)
  • 22. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Capture and process audio Shared data stream • Pulls in audio data onto local device memory Wake word engine • Constantly examines the data in the shared data stream • Compares it to onboard model for “Alexa” or other wake word Audio input processor • Sends audio data only when triggered • Will continue to send audio until it receives a stop directive
  • 23. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Exchange information with AVS • ACL forwards directives to the ADSL • Initiates a persistent downchannel stream • Opens and closes bidirectional event streams
  • 24. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Exchange information with AVS HTTP/2 persistent connection Event-specific stream Downchannel stream Notifications App-initiated actions Recurring alerts Music request event Play directive Client device
  • 25. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Deliver the instructions Alexa directive sequencer library Directives Alexa communication library • Accepts directives from the ACL • Sequences directives in correct order • Forwards directives to their appropriate capability agents
  • 26. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Deliver the instructions Capability agent AudioPlayer Alexa directive sequencer library Play Directive
  • 27. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Deliver the instructions Capability agent Capability agent AlertsAudioPlayer Alexa directive sequencer library Set Timer Directive
  • 28. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Deliver the instructions Capability agent Capability agent Capability agent SpeechSynthesizerAlertsAudioPlayer Alexa directive sequencer library Speech Directive
  • 29. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Prioritize user interactions • The AFML controls which capability agents may use the media player at any given time.
  • 30. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Prioritize user interactions Alexa focus manager library
  • 31. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Prioritize user interactions Alexa focus manager library
  • 32. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Prioritize user interactions Alexa focus manager library
  • 33. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Prioritize user interactions Channel priority Capability agents 1. Dialog SpeechRecognizer, SpeechSynthesizer 2. Alerts Alerts 3. Content AudioPlayer Alexa focus manager library
  • 34. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Perform specific functions SpeechRecognizer Speech capture SpeechSynthesizer Alexa speech output AudioPlayer Control music playback Alerts Timers and alarms
  • 35. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Perform specific functions Notifications Cloud-initiated messages System Communicate status to AVS PlaybackController Start/stop/skip track using buttons TemplateRuntime Render visual metadata Speaker Volume control (incl. mute)
  • 36. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AVS device SDK interaction Alexa, what’s today’s weather? “Alexa” Automated speech recognition (ASR) Natural language understanding (NLU) Text to speech (TTS) Skills Weather Recognize intent AVS capability Stream text/URL SDK module (source) Audio signal processor Media player Wake word detection Wake word engine Shared data stream Audio input processor Alexa communication library Alexa directive sequencer library Alexa focus manager library Capability agent External interfaceAlexa Voice Service Client (binary) It’s 60 degrees and raining in Seattle. Event Recognize speech Music service Directive Alexa Voice Service
  • 37. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AVS device SDK is… Portable - Extensible - Modular - Accessible
  • 38. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • Set up the SDK on Linux, MacOS, or Raspberry Pi • Extend to many hardware platforms • Garmin cross-compiled the SDK to Android OS Portable - Extensible - Modular - Accessible AVS Device SDK is…
  • 39. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • Add new features with a minimum of glue code • Hisense wrote their own capability agent to implement display cards. AVS Device SDK is… Portable - Extensible - Modular - Accessible
  • 40. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • Use libraries you need, discard what you don’t • Choose your own wake word engine • Sonos used their own media player. AVS Device SDK is… Portable - Extensible - Modular - Accessible
  • 41. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • SDK C++ source code available on GitHub—no cost to experiment, prototype, and build • Modify behaviors to enhance product-specific UX AVS Device SDK is… Portable - Extensible - Modular - Accessible
  • 42. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Prototype with the AVS Device SDK sample app • Use a commercial-grade SoC or Raspberry Pi • Hands-free implementation with “Alexa” wake word detection NXP PICO-i.MX7D Raspberry Pi
  • 43. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Build the AVS device SDK Open your workshop kit and power up your Raspberry Pi! Follow the instructions in your lab manual at: https://avs-sdk-workshop.github.io/ W o r k s h o p a c t i v i t y :
  • 44. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank you! I n t e g r a t e A l e x a i n t o Y o u r P r o d u c t U s i n g t h e A V S D e v i c e S D K Visit the Alexa developer portal for more information: Documentation, tutorials ,webinars, and more https://developer.amazon.com/alexa AVS: Alexa Voice Service https://developer.amazon.com/avs ASK: Create custom skills for Alexa https://developer.amazon.com/ask Smart home: https://developer.amazon.com/alexa/smart- home