SlideShare a Scribd company logo
1 of 40
Download to read offline
© 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Donn Morrill - Sr. Manager, Solutions Architecture, Amazon Alexa
Frederic Deramat - Sr. Principal Engineer, Amazon Alexa
Stephen Chien – Senior Advanced Technology Engineer, BMW
October 2015
MBL310
Alexa Voice Service
Under the Hood
Agenda
• Echo demo
• What is AVS?
• AVS walkthrough
• AVS tips and tricks
• Alexa under the hood
• Alexa in action - BMW
Echo demo
What is ASK?
The Alexa Skills Kit (ASK) is a
collection of self-service APIs,
tools, documentation, and code
samples that make it fast and
easy for you to add skills to
Alexa. Using ASK, you can teach
new skills to Alexa in just a few
hours.
Alexa companion app
• Register a device
• View and manage actions
• Link third-party accounts
• View lists
• And much more
What is AVS?
Registration and authentication
Basic AVS request
1) Create an HTTP request
2) Collect the audio and send the request
• Use “Transfer-Encoding: Chunked” for streaming the request or
set “Content-Length” for sending prerecorded audio
• Avoid storing the audio
3) Parse the response
4) Handle each directive
Basic AVS request: Write HTTP headers
POST /v1/avs/speechrecognizer/recognize HTTP/1.1
Host: access-alexa-na.amazon.com
Authorization: Bearer {ACCESS TOKEN}  From auth flow
Content-Type: multipart/form-data; boundary={BOUNDARY TERM}
Transfer-Encoding: chunked OR Content-Length: {LENGTH}
Basic AVS request: Send the audio
--{BOUNDARY TERM}
Content-Disposition: form-data; name="request"
Content-Type: application/json; charset=UTF-8
"messageBody": {
"profile": "alexa-close-talk",  Speech model
"locale": "en-us",
"format": "audio/L16; rate=16000; channels=1"
}
--{BOUNDARY TERM}
Content-Disposition: form-data; name="audio"
Content-Type: audio/L16; rate=16000; channels=1
{ENCODED AUDIO}  16 bit linear PCM at 16 kHz
Basic AVS request: Parse the response
HTTP/1.1 200 OK
Content-Type: multipart/related; boundary={BOUNDARY TERM}
--{BOUNDARY TERM}
Content-Type: application/json; charset=UTF-8
{ "messageHeader": {},
"messageBody": {
"directives": [ {
"namespace": “{AudioPlayer | SpeechSynthesizer}",
"name": “{DIRECTIVE}",
"payload" : {
--{BOUNDARY TERM}
Content-Disposition: form-data; name="audio"
Content-Type: audio/mpeg
Content-ID: {CONTENT ID}
{ENCODED AUDIO DATA}  If directive is speak, play this back to the user
AVS response directives
Directive Meaning
clearQueue Clear the playback queue
listen Multi-turn interaction - listen for more audio
play Play a streaming URL
speak Speak the Alexa response to the user
stop Stop streaming playback
Streaming events
Event Meaning
metadataAvailable Metadata associated with the selection in the
audio player
playbackError Audio player has experienced an issue during
playback
playbackFinished Audio player has completed playback
playbackIdle Audio player has reached the end of the
playlist
playbackInterrupted Audio player has been interrupted
playbackProgressReport Current state of the audio player
playbackStarted Audio player has started playing
Alexa platform
AVS interfaces
Interface Directives Events
SpeechRecognizer onSpeech
onTimeout
SpeechSynthesizer speak
ask
AudioPlayer play
stop
onPlaybackStarted
onPlaybackFinished
onPlaybackNearlyFinished
Speaker setVolume onVolumeChange
SpeechRecognizer
Connected Home
AudioPlayer
One-to-many interfaces
Close-talk vs. far-field
Protocol
Client
Components
HTTP REST HTTP REST Bidirectional async
Endpointer Communications Communications
Beamforming
Echo cancellation
Wakeword
Bidirectional async
1 2 3 4
Endpoint and protocol independence
AVS best practices
• Stream
• Decouple up and down channels
• Decouple protocol
• Adopt event-driven patterns
AVS under the hood
Under the hood: SLU
Skill orchestration
Skill orchestration: Focus & Context
Skill orchestration
Skill orchestration: Connected Home
Continuous improvement: Offline
Continuous improvement: Online
Continuous improvement: Online
Continuous improvement: Online
SMART AGENTS FOR BMW DRIVERS.
BMW Group Technology Office USA.
Stephen Chien
THE AUTOMOTIVE INDUSTRY WILL UNDERGO
MASSIVE CHANGES IN THE NEXT 10 YEARS.
SUSTAINABILITY DIGITALIZATION
CARS ARE POWERED BY
ELECTRICITY
CO2 SUSTAINABILITY HAS
GAINED GREATER SIGNIFICANCE
VEHICLES ARE DRIVING ALMOST
ACCIDENT-FREE
MOBILITY CONCEPTS LIKE CAR-
SHARING ARE WIDELY AVAILABLE
VEHICLES BECOME PART OF
THE DIGITAL ECOSYSTEM
HUMAN-MACHINE INTERFACES
BECOME MORE INTUITIVE
BMW i – THE NEXT GENERATION OF A CONNECTED
CAR.
Wearable
Integration
Smart TV
Integration
Smartphone
Integration
PERSONAL SMART AGENTS FOR BMW DRIVERS.
• Smart agents are everywhere
in life.
• Natural way to interact with
your vehicle.
• Easy for users to understand
and use.
• A smart agent that knows
about you and your vehicle.
PROTOTYPING AN ALEXA SKILL FOR BMW i.
Leveraging Amazon’s developer
platform.
• Built on AWS technology.
• ASK and AVS provide a seamless
user experience.
• ASK and AVS provide open
platforms.
BMW skill features.
• Request vehicle status through
Alexa.
• Execute vehicle commands
through Alexa.
BMW i SKILL DEMO.
Thank you!
Drawing winners announced:
http://bit.ly/appstoregiveaway
Remember to complete
your evaluations!

More Related Content

What's hot

Flight Attendant Interviews Made Easy
Flight Attendant Interviews Made EasyFlight Attendant Interviews Made Easy
Flight Attendant Interviews Made Easy
azadairss
 
Speech recognition system seminar
Speech recognition system seminarSpeech recognition system seminar
Speech recognition system seminar
Diptimaya Sarangi
 
Chapter 1 Introduction to Help Desk Support Roles - Part 1.pptx
Chapter 1 Introduction to Help Desk Support Roles - Part 1.pptxChapter 1 Introduction to Help Desk Support Roles - Part 1.pptx
Chapter 1 Introduction to Help Desk Support Roles - Part 1.pptx
ssuser073948
 

What's hot (20)

Top 10 airline cabin crew interview questions and answers
Top 10 airline cabin crew interview questions and answersTop 10 airline cabin crew interview questions and answers
Top 10 airline cabin crew interview questions and answers
 
Salesforce Integration Patterns
Salesforce Integration PatternsSalesforce Integration Patterns
Salesforce Integration Patterns
 
Debugging with Fiddler
Debugging with FiddlerDebugging with Fiddler
Debugging with Fiddler
 
Introduction to Salesforce Connected Apps
Introduction to Salesforce Connected AppsIntroduction to Salesforce Connected Apps
Introduction to Salesforce Connected Apps
 
Secure Salesforce: CRUD / FLS / Sharing
Secure Salesforce: CRUD / FLS / SharingSecure Salesforce: CRUD / FLS / Sharing
Secure Salesforce: CRUD / FLS / Sharing
 
Flight Attendant Interviews Made Easy
Flight Attendant Interviews Made EasyFlight Attendant Interviews Made Easy
Flight Attendant Interviews Made Easy
 
Voice recognition system
Voice recognition systemVoice recognition system
Voice recognition system
 
Cabin crew interview tips
Cabin crew interview tipsCabin crew interview tips
Cabin crew interview tips
 
LWC Episode 3- Component Communication and Aura Interoperability
LWC Episode 3- Component Communication and Aura InteroperabilityLWC Episode 3- Component Communication and Aura Interoperability
LWC Episode 3- Component Communication and Aura Interoperability
 
Choosing the Right Demo Environment (Salesforce Partners)
Choosing the Right Demo Environment (Salesforce Partners)Choosing the Right Demo Environment (Salesforce Partners)
Choosing the Right Demo Environment (Salesforce Partners)
 
Ansible Automation to Rule Them All
Ansible Automation to Rule Them AllAnsible Automation to Rule Them All
Ansible Automation to Rule Them All
 
Zoho people deck
Zoho people deck Zoho people deck
Zoho people deck
 
Interview skills
Interview skills Interview skills
Interview skills
 
Question 6 why do you want this job
Question 6  why do you want this jobQuestion 6  why do you want this job
Question 6 why do you want this job
 
Master-Guide.pdf
Master-Guide.pdfMaster-Guide.pdf
Master-Guide.pdf
 
Speech recognition system seminar
Speech recognition system seminarSpeech recognition system seminar
Speech recognition system seminar
 
Chapter 1 Introduction to Help Desk Support Roles - Part 1.pptx
Chapter 1 Introduction to Help Desk Support Roles - Part 1.pptxChapter 1 Introduction to Help Desk Support Roles - Part 1.pptx
Chapter 1 Introduction to Help Desk Support Roles - Part 1.pptx
 
Speech Recognition by Iqbal
Speech Recognition by IqbalSpeech Recognition by Iqbal
Speech Recognition by Iqbal
 
Adobe Experience Platform Bootcamp
Adobe Experience Platform BootcampAdobe Experience Platform Bootcamp
Adobe Experience Platform Bootcamp
 
Product Marketing, the Salesforce Way (October 13, 2014)
Product Marketing, the Salesforce Way (October 13, 2014)Product Marketing, the Salesforce Way (October 13, 2014)
Product Marketing, the Salesforce Way (October 13, 2014)
 

Viewers also liked

Amazon Alexa: our successes and fails
Amazon Alexa: our successes and failsAmazon Alexa: our successes and fails
Amazon Alexa: our successes and fails
Vyacheslav Lyalkin
 

Viewers also liked (8)

Develop Alexa Skills for Amazon Echo with PHP
Develop Alexa Skills for Amazon Echo with PHPDevelop Alexa Skills for Amazon Echo with PHP
Develop Alexa Skills for Amazon Echo with PHP
 
Build an Alexa Skill Step-by-Step
Build an Alexa Skill Step-by-StepBuild an Alexa Skill Step-by-Step
Build an Alexa Skill Step-by-Step
 
Introduction to building alexa skills and putting your amazon echo to work
Introduction to building alexa skills and putting your amazon echo to workIntroduction to building alexa skills and putting your amazon echo to work
Introduction to building alexa skills and putting your amazon echo to work
 
Alexa Hackathon - The 5 Love Languages
Alexa Hackathon - The 5 Love LanguagesAlexa Hackathon - The 5 Love Languages
Alexa Hackathon - The 5 Love Languages
 
Amazon alexa - building custom skills
Amazon alexa - building custom skillsAmazon alexa - building custom skills
Amazon alexa - building custom skills
 
Amazon Alexa: our successes and fails
Amazon Alexa: our successes and failsAmazon Alexa: our successes and fails
Amazon Alexa: our successes and fails
 
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
 
Use voice recognition with Alexa to control your home [JavaOne]
Use voice recognition with Alexa to control your home [JavaOne]Use voice recognition with Alexa to control your home [JavaOne]
Use voice recognition with Alexa to control your home [JavaOne]
 

Similar to (MBL310) Alexa Voice Service Under the Hood

AWS 201 - A Walk through the AWS Cloud: Delivering Static and Dynamic Content...
AWS 201 - A Walk through the AWS Cloud: Delivering Static and Dynamic Content...AWS 201 - A Walk through the AWS Cloud: Delivering Static and Dynamic Content...
AWS 201 - A Walk through the AWS Cloud: Delivering Static and Dynamic Content...
Amazon Web Services
 
Tulip Managed Unified Communication Solutions
Tulip Managed Unified Communication SolutionsTulip Managed Unified Communication Solutions
Tulip Managed Unified Communication Solutions
Sujoy Mukherjee
 
Amazon Webservice & Cloud Computing
Amazon Webservice & Cloud ComputingAmazon Webservice & Cloud Computing
Amazon Webservice & Cloud Computing
Jack Smith
 

Similar to (MBL310) Alexa Voice Service Under the Hood (20)

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...
 
AWS re:Invent 2016: Workshop: Build an Alexa-Enabled Product with Raspberry P...
AWS re:Invent 2016: Workshop: Build an Alexa-Enabled Product with Raspberry P...AWS re:Invent 2016: Workshop: Build an Alexa-Enabled Product with Raspberry P...
AWS re:Invent 2016: Workshop: Build an Alexa-Enabled Product with Raspberry P...
 
Tutorial adaptive-streaming
Tutorial adaptive-streamingTutorial adaptive-streaming
Tutorial adaptive-streaming
 
AWS 201 - A Walk through the AWS Cloud: Delivering Static and Dynamic Content...
AWS 201 - A Walk through the AWS Cloud: Delivering Static and Dynamic Content...AWS 201 - A Walk through the AWS Cloud: Delivering Static and Dynamic Content...
AWS 201 - A Walk through the AWS Cloud: Delivering Static and Dynamic Content...
 
AWS Media and Entertainment Cloud Symposium: Broadcast and OTT
AWS Media and Entertainment Cloud Symposium:  Broadcast and OTTAWS Media and Entertainment Cloud Symposium:  Broadcast and OTT
AWS Media and Entertainment Cloud Symposium: Broadcast and OTT
 
iNTRODUCTION TO AWS IOT
iNTRODUCTION TO AWS IOTiNTRODUCTION TO AWS IOT
iNTRODUCTION TO AWS IOT
 
Building CICD Pipelines for Serverless Applications - DevDay Los Angeles 2017
Building CICD Pipelines for Serverless Applications - DevDay Los Angeles 2017Building CICD Pipelines for Serverless Applications - DevDay Los Angeles 2017
Building CICD Pipelines for Serverless Applications - DevDay Los Angeles 2017
 
Integrating Video in Mobile Apps and Websites - MBL308 - re:Invent 2017
Integrating Video in Mobile Apps and Websites - MBL308 - re:Invent 2017Integrating Video in Mobile Apps and Websites - MBL308 - re:Invent 2017
Integrating Video in Mobile Apps and Websites - MBL308 - re:Invent 2017
 
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...
 
Fiat eco:Drive
Fiat eco:DriveFiat eco:Drive
Fiat eco:Drive
 
Building a Bank with Go
Building a Bank with GoBuilding a Bank with Go
Building a Bank with Go
 
The Modern Tech Stack: Data Analytics in the Cloud for Developers and Founders
The Modern Tech Stack: Data Analytics in the Cloud for Developers and FoundersThe Modern Tech Stack: Data Analytics in the Cloud for Developers and Founders
The Modern Tech Stack: Data Analytics in the Cloud for Developers and Founders
 
Tulip Managed Unified Communication Solutions
Tulip Managed Unified Communication SolutionsTulip Managed Unified Communication Solutions
Tulip Managed Unified Communication Solutions
 
What is API - Understanding API Simplified
What is API - Understanding API SimplifiedWhat is API - Understanding API Simplified
What is API - Understanding API Simplified
 
CTD405_Building Serverless Video Workflows
CTD405_Building Serverless Video WorkflowsCTD405_Building Serverless Video Workflows
CTD405_Building Serverless Video Workflows
 
2nd AMIMOTO: WordPress + Amazon Web Services Singapore
2nd AMIMOTO: WordPress + Amazon Web Services Singapore2nd AMIMOTO: WordPress + Amazon Web Services Singapore
2nd AMIMOTO: WordPress + Amazon Web Services Singapore
 
Introduction to SOAP
Introduction to SOAPIntroduction to SOAP
Introduction to SOAP
 
Amazon Webservice & Cloud Computing
Amazon Webservice & Cloud ComputingAmazon Webservice & Cloud Computing
Amazon Webservice & Cloud Computing
 
Rebaca's Video Delivery Expertise Overview
Rebaca's Video Delivery Expertise OverviewRebaca's Video Delivery Expertise Overview
Rebaca's Video Delivery Expertise Overview
 
Amazon Alexa: How to talk with your Smart Home devices
Amazon Alexa:  How to talk with your Smart Home devicesAmazon Alexa:  How to talk with your Smart Home devices
Amazon Alexa: How to talk with your Smart Home devices
 

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

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
 

Recently uploaded

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Recently uploaded (20)

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

(MBL310) Alexa Voice Service Under the Hood

  • 1. © 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Donn Morrill - Sr. Manager, Solutions Architecture, Amazon Alexa Frederic Deramat - Sr. Principal Engineer, Amazon Alexa Stephen Chien – Senior Advanced Technology Engineer, BMW October 2015 MBL310 Alexa Voice Service Under the Hood
  • 2. Agenda • Echo demo • What is AVS? • AVS walkthrough • AVS tips and tricks • Alexa under the hood • Alexa in action - BMW
  • 4. What is ASK? The Alexa Skills Kit (ASK) is a collection of self-service APIs, tools, documentation, and code samples that make it fast and easy for you to add skills to Alexa. Using ASK, you can teach new skills to Alexa in just a few hours.
  • 5. Alexa companion app • Register a device • View and manage actions • Link third-party accounts • View lists • And much more
  • 8. Basic AVS request 1) Create an HTTP request 2) Collect the audio and send the request • Use “Transfer-Encoding: Chunked” for streaming the request or set “Content-Length” for sending prerecorded audio • Avoid storing the audio 3) Parse the response 4) Handle each directive
  • 9. Basic AVS request: Write HTTP headers POST /v1/avs/speechrecognizer/recognize HTTP/1.1 Host: access-alexa-na.amazon.com Authorization: Bearer {ACCESS TOKEN}  From auth flow Content-Type: multipart/form-data; boundary={BOUNDARY TERM} Transfer-Encoding: chunked OR Content-Length: {LENGTH}
  • 10. Basic AVS request: Send the audio --{BOUNDARY TERM} Content-Disposition: form-data; name="request" Content-Type: application/json; charset=UTF-8 "messageBody": { "profile": "alexa-close-talk",  Speech model "locale": "en-us", "format": "audio/L16; rate=16000; channels=1" } --{BOUNDARY TERM} Content-Disposition: form-data; name="audio" Content-Type: audio/L16; rate=16000; channels=1 {ENCODED AUDIO}  16 bit linear PCM at 16 kHz
  • 11. Basic AVS request: Parse the response HTTP/1.1 200 OK Content-Type: multipart/related; boundary={BOUNDARY TERM} --{BOUNDARY TERM} Content-Type: application/json; charset=UTF-8 { "messageHeader": {}, "messageBody": { "directives": [ { "namespace": “{AudioPlayer | SpeechSynthesizer}", "name": “{DIRECTIVE}", "payload" : { --{BOUNDARY TERM} Content-Disposition: form-data; name="audio" Content-Type: audio/mpeg Content-ID: {CONTENT ID} {ENCODED AUDIO DATA}  If directive is speak, play this back to the user
  • 12. AVS response directives Directive Meaning clearQueue Clear the playback queue listen Multi-turn interaction - listen for more audio play Play a streaming URL speak Speak the Alexa response to the user stop Stop streaming playback
  • 13. Streaming events Event Meaning metadataAvailable Metadata associated with the selection in the audio player playbackError Audio player has experienced an issue during playback playbackFinished Audio player has completed playback playbackIdle Audio player has reached the end of the playlist playbackInterrupted Audio player has been interrupted playbackProgressReport Current state of the audio player playbackStarted Audio player has started playing
  • 15. AVS interfaces Interface Directives Events SpeechRecognizer onSpeech onTimeout SpeechSynthesizer speak ask AudioPlayer play stop onPlaybackStarted onPlaybackFinished onPlaybackNearlyFinished Speaker setVolume onVolumeChange
  • 20. Close-talk vs. far-field Protocol Client Components HTTP REST HTTP REST Bidirectional async Endpointer Communications Communications Beamforming Echo cancellation Wakeword Bidirectional async 1 2 3 4
  • 21. Endpoint and protocol independence
  • 22. AVS best practices • Stream • Decouple up and down channels • Decouple protocol • Adopt event-driven patterns
  • 33. SMART AGENTS FOR BMW DRIVERS. BMW Group Technology Office USA. Stephen Chien
  • 34. THE AUTOMOTIVE INDUSTRY WILL UNDERGO MASSIVE CHANGES IN THE NEXT 10 YEARS. SUSTAINABILITY DIGITALIZATION CARS ARE POWERED BY ELECTRICITY CO2 SUSTAINABILITY HAS GAINED GREATER SIGNIFICANCE VEHICLES ARE DRIVING ALMOST ACCIDENT-FREE MOBILITY CONCEPTS LIKE CAR- SHARING ARE WIDELY AVAILABLE VEHICLES BECOME PART OF THE DIGITAL ECOSYSTEM HUMAN-MACHINE INTERFACES BECOME MORE INTUITIVE
  • 35. BMW i – THE NEXT GENERATION OF A CONNECTED CAR. Wearable Integration Smart TV Integration Smartphone Integration
  • 36. PERSONAL SMART AGENTS FOR BMW DRIVERS. • Smart agents are everywhere in life. • Natural way to interact with your vehicle. • Easy for users to understand and use. • A smart agent that knows about you and your vehicle.
  • 37. PROTOTYPING AN ALEXA SKILL FOR BMW i. Leveraging Amazon’s developer platform. • Built on AWS technology. • ASK and AVS provide a seamless user experience. • ASK and AVS provide open platforms. BMW skill features. • Request vehicle status through Alexa. • Execute vehicle commands through Alexa.
  • 38. BMW i SKILL DEMO.
  • 39. Thank you! Drawing winners announced: http://bit.ly/appstoregiveaway