Skip to main content
POST
cURL (save to file)

Authorizations

X-API-KEY
string
header
required

API key for authentication. You can obtain an API key from the Typecast API Console.

Body

application/json

A sequence of speech and pause segments returned as one audio file.

segments
(TTSComposeSegment · object | PauseComposeSegment · object)[]
required

Speech and pause segments in output order. Provide 1–50 segments with at least one tts segment.

Required array length: 1 - 50 elements

A speech segment with the same synthesis options as a standard text-to-speech request.

Example:

Response

Binary composed audio. The media type matches the requested audio_format.

The response is of type file.