Introduction au développement sur les nouveaux assistants vocaux (Alexa et Google Home). Présentation des contraintes et des bonnes pratiques liées à ces interfaces vocales. Démo live avec Alexa et Google Home.
8. ET PLEIN D'AUTRES
Cortana (Microsoft)
Jarvis (Facebook) avec la voix de Morgan Freeman
Matrix voice pour raspberry PI
mycroft
Jasper
...
9. ALEXA
Lancé en novembre 2014
Présent dans les produits Amazon
Mais aussi dans des produits LG, Lenovo, Huawei, ...
Même sur iOS depuis le 16 mars
Possibilité de l'intégrer dans ses produits via AVS
+ 10 000 skills disponibles
10. AMAZON ECHO
>8 millions de produits vendus ($179)
Gestion smart home (lumières, chauffage, serrures)
Disponible US, UK, DE
11. GOOGLE ASSISTANT
Lancé en mai 2016
Présent sur Android 6+ (US only), Google Home
Prévu pour les prochaines version d'Android TV et
Android auto
~200 interactions disponibles
15. SOYEZ CLAIR SI VOUS ATTENDEZ UNE RÉPONSE.
Don’t Do
Trivia Challenge. You
can choose from the
following categories:
80’s Pop Songs, Potent
Potables, or European
History.
Trivia Challenge. Here
are your categories: 80’s
Pop Songs, Potent
Potables, or European
History. Which one do
you want?
16. SOYEZ BREF
Don’t Do
Astrology Daily: There
are 12 zodiac signs that I
can give you a horoscope
for, please tell which one
you’d like.
Astrology Daily:
Horoscope for which
sign?
17. SOYEZ BREF
Don’t Do
Dairy Shack: What avor
do you want? For
chocolate, say Chocolate.
For vanilla, say Vanilla.
Or for strawberry, say
Strawberry.
Dairy Shack: Which
avor would you like:
Chocolate, Vanilla, or
Strawberry?
18. NE DEMANDEZ PAS TOUT D'UN COUP
Don’t Do
Date Night: To make a
reservation, you need to
say the location, time,
date and number of
people. Please start over.
Date Night: Reservation
at Haymarket. For what
time tonight?
User: About 7:30.
19. BIEN UTILISER LE TEXT TO SPEECH
Don't Do
Grrrrreeeaaat job,
you are correct.
0:00 / 0:02
Great <break time="1ms"/> job,
you are correct.
0:00 / 0:02
20. BIEN UTILISER LE TEXT TO SPEECH
Don't Do
Dialing 18001234567
0:00 / 0:05
Dialing
<say-as interpret-as="telephone"
18001234567
</say-as>
0:00 / 0:04
23. DÉFINIR LE MOT DE RÉVEIL (INVOCATION NAME)
Par exemple, "Space Geek"
Alexa, start Space Geek
Alexa, launch Space Geek
Alexa, ... with Space Geek
Alexa, ask Space Geek to ...
25. DÉFINIR LES PHRASES D'EXEMPLE
GetNewFactIntent a fact
GetNewFactIntent a space fact
GetNewFactIntent tell me a fact
GetNewFactIntent tell me a space fact
GetNewFactIntent give me a fact
GetNewFactIntent give me a space fact
GetNewFactIntent tell me trivia
GetNewFactIntent tell me a space trivia
GetNewFactIntent give me trivia
GetNewFactIntent give me a space trivia
GetNewFactIntent give me some information
GetNewFactIntent give me some space information
GetNewFactIntent tell me something
GetNewFactIntent give me something
26. ÉCRIRE LE CODE DE VOTRE FONCTION LAMBDA
var handlers = {
'LaunchRequest': function () {
this.emit('GetNewFactIntent');
},
'GetNewFactIntent': function () {
var factArr = this.t('FACTS');
var factIndex = Math.floor(Math.random() * factArr.length);
var randomFact = factArr[factIndex];
// Create speech output
var speechOutput = this.t("GET_FACT_MESSAGE") + randomFact;
this.emit(':tellWithCard', speechOutput, this.t("SKILL_NAME"
},
'AMAZON.HelpIntent': function () {
var speechOutput = this.t("HELP_MESSAGE");
27. ÉCRIRE LE CODE DE VOTRE FONCTION LAMBDA
exports.handler = function(event, context, callback) {
var alexa = Alexa.handler(event, context);
alexa.APP_ID = APP_ID;
alexa.registerHandlers(handlers);
alexa.execute();
};
29. ET POUR GOOGLE HOME?
Utilisation de
Dé nition mot clé, questions, réponses
Possibilité d'appeler un webhook pour traiter la
question
Gestion de connexion oAuth
Peut s'intégrer à Facebook, Slack, Twitter, ...
API.ai