Partager via


Personnaliser les gestes de l’avatar de synthèse vocale avec SSML

Le langage SSML (Speech Synthesis Markup Language) avec texte d’entrée détermine la structure, le contenu et d’autres caractéristiques de la sortie de synthèse vocale. La plupart des balises SSML peuvent également fonctionner dans l’avatar de synthèse vocale. De plus, le mode par lots d’avatar de synthèse vocale permet d’insérer des gestes d’avatar en utilisant l’élément de signet SSML au format <bookmark mark='gesture.*'/>.

Un geste commence au point d’insertion dans le temps. Si le geste prend plus de temps que l’audio, le geste est coupé au moment où l’audio est terminé.

Exemple de signet

L’exemple suivant montre comment insérer un geste dans la synthèse par lots de l’avatar de synthèse vocale avec SSML.

<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US">
<voice name="en-US-AvaMultilingualNeural">
Hello <bookmark mark='gesture.wave-left-1'/>, my name is Ava, nice to meet you!
</voice>
</speak>

Dans cet exemple, l’avatar commence à agiter sa main à gauche après le mot « Hello ».

Capture d’écran de l’affichage de l’avatar prédéfini qui agite sa main à gauche.

Personnages, styles et gestes d’avatar prédéfini pris en charge

La liste complète des gestes prédéfinis pris en charge par l’avatar fournie ici peut également être trouvée dans le portail de l’avatar de synthèse vocale.

Caractères Styles Mouvements
Harry business 123
calm-down
come-on
five-star-reviews
bien
hello
introduce
invite
thanks
bienvenue
Harry décontracté 123
come-on
five-star-reviews
gong-xi-fa-cai
bien
happy-new-year
hello
please
bienvenue
Harry youthful 123
come-on
Éteindre
five-star
bien
hello
invite
show-right-up-down
bienvenue
Jeff business 123
come-on
five-star-reviews
hands-up
ici
meddle
please2
show
silence
thanks
Jeff formal 123
come-on
five-star-reviews
lift
please
silence
thanks
very-good
Lisa casual-sitting numeric1-left-1
numeric2-left-1
numeric3-left-1
thumbsup-left-1
show-front-1
show-front-2
show-front-3
show-front-4
show-front-5
think-twice-1
show-front-6
show-front-7
show-front-8
show-front-9
Lisa graceful-sitting wave-left-1
wave-left-2
thumbsup-left
show-left-1
show-left-2
show-left-3
show-left-4
show-left-5
show-right-1
show-right-2
show-right-3
show-right-4
show-right-5
Lisa graceful-standing
Lisa technical-sitting wave-left-1
wave-left-2
show-left-1
show-left-2
point-left-1
point-left-2
point-left-3
point-left-4
point-left-5
point-left-6
show-right-1
show-right-2
show-right-3
point-right-1
point-right-2
point-right-3
point-right-4
point-right-5
point-right-6
Lisa technical-standing
Lori décontracté 123-left
a-little
beg
calm-down
come-on
five-star-reviews
bien
hello
ouvert
please
thanks
Lori graceful 123-left
applaud
come-on
introduce
nod
please
show-left
show-right-3
thanks
bienvenue
Lori formal 123
come-on
come-on-left
Éteindre
five-star
bien
hands-triangle
hands-up
hi
optimiste
thanks
Max business a-little-bit
click-the-link
display-number
encourage-1
encourage-2
five-star-praise
front-right
good-01
good-02
introduction-to-products-1
introduction-to-products-2
introduction-to-products-3
gauche
lower-left
number-one
press-both-hands-down-1
press-both-hands-down-2
push-forward
raise-ones-hand
droite
say-hi
shrug-ones-shoulders
slide-from-left-to-right
slide-to-the-left
thanks
the-front
top-middle-and-bottom-left
top-middle-and-bottom-right
upper-left
upper-right
bienvenue
Max décontracté a-little-bit
applaud
click-the-link
display-number
encourage-1
encourage-2
five-star-praise
front-left
good-1
good-2
hello
introduction-to-products-1
introduction-to-products-2
introduction-to-products-3
introduction-to-products-4
gauche
length
nodding
number-one
press-both-hands-down
raise-ones-hand
droite
right-front
shrug-ones-shoulders
slide-from-left-to-right
slide-to-the-left
thanks
the-front
upper-left
upper-right
bienvenue
Max formal a-little-bit
click-the-link
display-number
encourage-1
encourage-2
five-star-praise
front-left
front-right
good-1
good-2
introduction-to-products-1
introduction-to-products-2
introduction-to-products-3
gauche
lower-left
lower-right
press-both-hands-down
push-forward
droite
say-hi
shrug-ones-shoulders
slide-from-left-to-right
slide-to-the-left
the-front
top-middle-and-bottom-right
upper-left
upper-right
Meg formal a-little-bit
click-the-link
display-number
encourage-1
encourage-2
five-star-praise
front-left
front-right
good-1
good-2
hands-forward
introduction-to-products-1
introduction-to-products-2
introduction-to-products-3
gauche
number-one
press-both-hands-down-1
press-both-hands-down-2
droite
say-hi
shrug-ones-shoulders
slide-from-left-to-right
the-front
upper-left
upper-right
Meg décontracté a-little-bit
click-the-link
cross-hand
display-number
encourage-1
encourage-2
five-star-praise
front-left
front-right
good-1
good-2
handclap
introduction-to-products-1
introduction-to-products-2
introduction-to-products-3
gauche
length
lower-left
lower-right
number-one
press-both-hands-down
droite
say-hi
shrug-ones-shoulders
slide-from-right-to-left
slide-to-the-left
spread-hands
the-front
top-middle-and-bottom-left
top-middle-and-bottom-right
upper-left
upper-right
Meg business a-little-bit
encourage-1
encourage-2
five-star-praise
front-left
front-right
good-1
good-2
introduction-to-products-1
introduction-to-products-2
introduction-to-products-3
gauche
length
number-one
press-both-hands-down-1
press-both-hands-down-2
raise-ones-hand
droite
say-hi
shrug-ones-shoulders
slide-from-left-to-right
slide-to-the-left
spread-hands
thanks
the-front
upper-left

Tous les styles sont pris en charge via l’API de conversion de texte par synthèse vocale en temps réel, excepté lisa-graceful-sitting, lisa-graceful-standing, lisa-technical-sitting et lisa-technical-standing. Les mouvements sont uniquement pris en charge avec l’API de synthèse par lots et ne sont pas pris en charge via l’API en temps réel.

Étapes suivantes