Synthesize speech from text with voice and gender customization, plus optional webhook callback.
๐ก Tip: Set a webhook_url
to receive results automatically when your audio is ready.
Parameter | Type | Required | Description |
---|---|---|---|
text | String | Yes | The text content to convert to speech |
voice_id | String | Optional | Voice model to apply for synthesis. Either voice_id or sample_audio_url must be provided |
sample_audio_url | String | Optional | URL of Voice you want. Either voice_id or sample_audio_url must be provided |
gender | String | Yes | Gender of the voice (โmaleโ, โfemaleโ) |
webhook_url | String | No | URL to receive a callback with generated audio |
Note: You must provide eithervoice_id
oraudio_url
โ not both asNone
.
๐ง Use the audio_url
to listen or download your synthesized speech.
Successfully initiated TTS conversion
The response is of type object
.