Text to Speech (Bytes)
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Cartesia-Version
Request
This endpoint expects an object.
model_id
The ID of the model to use for the generation. See Models for available models.
transcript
voice
output_format
language
The language that the given voice should speak the transcript in.
Options: English (en), French (fr), German (de), Spanish (es), Portuguese (pt), Chinese (zh), Japanese (ja), Hindi (hi), Italian (it), Korean (ko), Dutch (nl), Polish (pl), Russian (ru), Swedish (sv), Turkish (tr).
duration
The maximum duration of the audio in seconds. You do not usually need to specify this. If the duration is not appropriate for the length of the transcript, the output audio may be truncated.
Response
This endpoint returns a file.