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
API Output
Example 3
API Input
API Output
Example 4
API Input
API Output
Last updated