TTS
Generate and stream TTS audio
Changed onGenerate and stream TTS audio based on the provided text. Returns an audio stream in the specified format (default MP3). Supported formats: mp3, opus, mulaw. For wav or s16le output, use the WebSocket API.
post/tts
Request
- Base URLhttps://restapi.deepdub.ai/api/v1
- AuthAPI key in header x-api-key
Headers
x-api-keystring required
API Key
Request body
Example request
{
"model": "dd-etts-3.0",
"targetText": "Hello world, welcome to Deepdub.",
"locale": "en-US",
"voicePromptId": "bd1b00bb-be1c-4679-8eaa-0fcbfd4ff773",
"seed": 42
}Response
Audio stream in the requested format (MP3, Opus, or mulaw depending on format parameter). The response body is raw audio bytes.
Changes
- info
added the new optional request property
- info
added the non-success response with the status
- info
added the non-success response with the status
- info