cURL
curl --request POST \ --url https://tavusapi.com/v2/speech \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "script": "Hi, this is my first speech.", "replica_id": "r665388ec672" }'
{ "speech_id": "sda06a0f4256", "speech_name": "<string>", "speech_file_url": "<string>" }
This endpoint generates an audio file based on a script with a provided Replica.
The response is of type object.
object