Text to Speech
Generate speech from text
API that generates audio from text and accent. Generating audio through this endpoint costs 1 credit for every 30 seconds.
POST
About Request Data Structure of Webhook
When using ‘text_to_speech’ API, if the ‘webhook_url’ is passed in the parameters, we will initiate a POST request to the webhook_url
when the task succeeds or fails, with the following content:
Arguments:
id
(string): The unique identifier of the jobstatus
(string): The status of the job. Possible values arepending
,in_queue
,running
,failed
,done
failed_reason
(string): The reason of the failure if the job failedvideo_output
(string): The URL of the video if the job is done
Note: We might send multiple requests for status changes.
Authorizations
API ID, from your settings page.
API Key, from your settings page.
Body
Text to be converted to speech
Maximum length:
4000
Accent to be used for the speech
Webhook URL for status updates. Default is null.
Maximum length:
200
Response
201 - application/json
Text to be converted to speech
Maximum length:
4000
Output audio url
Whether the job is hidden or not
Failed reason
Accent to be used for the speech
Webhook URL for status updates. Default is null.
Maximum length:
200