Speech
Generate Speech
This endpoint generates an audio file based on a script with a provided Replica.
POST
/
v2
/
speech
Authorizations
x-api-key
string
headerrequiredBody
application/json
script
string
requiredThe text script that will be used to generate the audio.
replica_id
string
requiredThe replica that will be used to generate the audio.
callback_url
string
requiredThe speech file will be returned asynchoronously as a presigned S3 URL.
speech_name
string
A name for the speech.
Response
200 - application/json
speech_id
string
A unique identifier for the speech.
speech_name
string
The name of the speech.
speech_file_url
string
If no callback_url is provided in the request, this will contain a direct link to download the speech file.