To limit the maximum length of audio fileΒΆ
Important
Related paramters:
max_seconds: Limits the maximum length of synthesized speech. The range of values are
1to60. Default is30.
If you want to limit the maximum length to 10 seconds, 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}",
"max_seconds": 10
}'