Adjust the pitch at the end of a sentence.ΒΆ

Important

Related paramters:

  • last_pitch: -2(lowest), -1, 0, 1, 2(highest)

To raise pitch up at the end of a sentence, you must request as follows:

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",
    "last_pitch": 2
  }'

None

Result of pitch-up