Apply custom emotion in your scriptΒΆ

Danger

Not all characters are available.

Caution

Please check if emotion_prompt is activated through the character version api.

Important

Related paramters:

  • model_version

  • emotion_tone_preset: emotion-prompt

  • emotion_prompt

To apply the custom emotion super happy:

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": "emotion-prompt",
    "emotion_prompt": "super happy"
  }'