TTS
Generate and stream TTS audio
Generate 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
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"
}Response
Audio stream in the requested format (MP3, Opus, or mulaw depending on format parameter). The response body is raw audio bytes.