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.

Example 1

API Input

python single_request.py --language en-US --token <your-token> --output_file example1.mp4 --actor vi --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 example2.mp4 --actor caprica --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 example3.mp4 --actor annie --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 example4.mp4 --actor mario --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