
Build your first voice bot for
Alexa and Azure Functions
@lahdiouiouadie

Azure Community Day

Ouadie LAHDIOUI
Consultant IT
@lahdiouiouadie

Alexa est l'IA derière plusieurs devices du marché

Alexa en deux mots








Support de plus de langues

Démonstration #1
Configuration de l'enceinte sur
> www.alexa.amazon.com <
ALEXA SOUS LE CAPOT




TRAITEMENT AUTOMATIQUE DU LANGAGE NATUREL
reconnaissance vocale
Text<>to<>speech

Ce qu'il faut savoir pour développer
votre skill
tout commence une fois vous dites
Alexa
echo- computer
vous pouvez changer le mot déclencheur en :
traitement automatique du langage naturel
Alexa, c'est quoi l'état du trafic du Métro 1
Alexa, Demande à info-trafic l'état du trafic du tram 1
Alexa, ouvre info-trafic
Mot déclencheur
Action
Nom de la skill
Mot déclencheur
Paramétres
Mot déclencheur
Action
Nom de la skill
Paramétres
Phrases d'apprentissage
Phrases d'apprentissage
détection des intentions utilisateur
Extraction des paramètres
gettraficinfo
L'état du trafic du tram 1
L'état du trafic du métro 1
L'état du trafic de l'RER 1
Autreintent
...
...
...
intents


Démonstration #2

Configuration @ développement d'une skill
> www.developer.amazon.com <

ALEXA ❤️ Azure functions
MS Event-driven serverless compute
vue globale de l'Archi de la skill





voici à quoi ressemble une REquête
alexa > votre serveur
{
"version": "1.0",
"session": {
"new": true,
"sessionId": "amzn1.echo-api.session.<value>",
"application": {
"applicationId": "amzn1.ask.skill.<value>"
},
"user": {
"userId": "amzn1.ask.account.<value>"
}
},
. . .
"request": {
"type": "IntentRequest",
"requestId": "amzn1.echo-api.request.<value>",
"timestamp": "2018-03-22T15:25:51Z",
"locale": "en-US",
"intent": {
"name": "getTraficInfo",
"confirmationStatus": "NONE"
}
}
}
et voici à quoi ressemble une réponse
votre serveur > alexa
{
"body": {
"version": "1.0",
"response": {
"outputSpeech": {
"type": "SSML",
"ssml": "<speak> Bienvenue dans ....</speak>"
},
"reprompt": {
"outputSpeech": {
"type": "SSML",
"ssml": "<speak>Voulez-vous l'état du trafic de quelles lignes ?</speak>"
}
},
"shouldEndSession": false
},
"userAgent": "ask-nodejs/1.0.25 Node/v6.10.3"
}
}

Démonstration #3

Création d'une function azure

Démonstration #4

Integration de l'assitant CORTANA avec Alexa
Merci !
Des questions ?

@lahdiouiouadie

Build your voice bot for Alexa and Azure functions @Azure Community Day 2020
By Ouadie LAHDIOUI
Build your voice bot for Alexa and Azure functions @Azure Community Day 2020
Build voice bot for Alexa and Azure Functions
- 1,137