Expressive Animation

The API supports SSML tags as input in order to achieve expressiveness. If expressive SSML tags are present in the text, the --emotion parameter is overridden.

The following gives some examples of expressive SSML tags that can be generated using the Python API client.

Here we have applied the animation output to our own avatar characters to demonstrate the emotions.

Example 1

API Input

python single_request.py --language en-US --token <your-token> --output_file $Job_uuid.fbx --text "Hi, I can show multiple emotions. <emo:express-as style='happy' styledegree='1.0'>I can look happy.</emo:express-as> <emo:express-as style='sad' styledegree='1.0'>I can look sad.</emo:express-as> <emo:express-as style='surprised' styledegree='1.0'>I can look surprised.</emo:express-as> <emo:express-as style='disappointed' styledegree='1.0'>I can look disappointed.</emo:express-as> <emo:express-as style='fearful' styledegree='1.0'>I can look fearful as well.</emo:express-as>" 

API Output

Example 2

API Input

python single_request.py --language en-US --token <your-token> --output_file $Job_uuid.fbx --text "This morning, when I heard the news, I was really <emo:express-as style='happy' styledegree='1.0'>happy that things were finally moving.</emo:express-as> However, I was also quite <emo:express-as style='fearful' styledegree='1.0'>scared that things may not turn out as expected.</emo:express-as>"

API Output

Example 3

API Input

python single_request.py --language en-US --token <your-token> --output_file $Job_uuid.fbx --text "To be honest, <emo:express-as style='surprised' styledegree='1.0'>I am quite surprised by what you have been telling me.</emo:express-as> Some of your remarks <emo:express-as style='sad' styledegree='1.0'>also make me feel sad.</emo:express-as>"

API Output

Example 4

API Input

python single_request.py --language en-US --token <your-token> --output_file $Job_uuid.fbx --text "<emo:express-as style='disappointed' styledegree='1.0'>Those scores are extremely disappointing.</emo:express-as> I wonder what went wrong. <emo:express-as style='fearful' styledegree='1.0'>It scares me to think what it would be like next year.</emo:express-as>"

API Output

Last updated