Apply predefined emotion in your scriptΒΆ
Caution
Please check out the predefined emotions through character version api. Predefined emotions may be different for each model version.
Important
Related paramters:
model_version
emotion_tone_preset
To apply the predefined emotion happy-1:
curl \
--request POST \
--url https://typecast.ai/api/speak \
--header "Content-Type: application/json" \
--header "Authorization: Bearer $API_TOKEN" \
--data '{
"text": "My name is Typecast.",
"lang": "auto",
"actor_id": "${24-letters-your_actor_id}",
"model_version": "latest",
"emotion_tone_preset": "happy-1"
}'