Submit a TTS generation request for asynchronous processing. Returns a URL that can be polled later to retrieve the generated audio. Useful for long-form generations or workflows that don’t need streaming. The request body is the same as POST /tts.
POST /tts/retroactive accepts the same request body as POST /tts, but instead of streaming audio in the HTTP response it queues the generation and returns a URL. Fetch that URL later (with the same x-api-key header) to retrieve the audio via GET /tts/retroactive/{id}.
| Use this when | Use streaming POST /tts when |
|---|---|
| You’re generating a long script and don’t need bytes immediately | You need audio to start playing as soon as possible |
| You’re orchestrating a batch workflow (e.g., dubbing, prerendering) | You’re building a real-time interaction |
| You want to retry the download without re-running generation | The request fits comfortably in a single HTTP response |
id. Store it (or the id) so you can retrieve the audio later.API key for authentication. Must start with dd- prefix.
API Key
Request structure for TTS generation endpoints.
Optional parameters (not shown in playground): generationId (string), targetDuration (number, seconds), tempo (number, 0.5–2.0), variance (number, 0.0–1.0), seed (integer), temperature (number, 0.0–1.0), sampleRate (integer), format (string: mp3/opus/mulaw — default mp3), promptBoost (boolean), superStretch (boolean), realtime (boolean), cleanAudio (boolean, default true), autoGain (boolean), publish (boolean), accentControl (object with accentBaseLocale, accentLocale, accentRatio), performanceReferencePromptId (string), voiceReference (string, base64-encoded audio).
Model ID to use for generation
"dd-etts-3.0"
Text to be converted to speech
"Hello world, welcome to Deepdub."
Language locale code (e.g., en-US, fr-FR)
"en-US"
ID of the voice prompt to use for generation
"bd1b00bb-be1c-4679-8eaa-0fcbfd4ff773"
Generation accepted. Returns a URL to fetch the generated audio when ready.
Response containing a URL where the asynchronously generated TTS audio can be retrieved
URL to fetch the generated audio (issue a GET request with the same x-api-key header).
"https://restapi.deepdub.ai/api/v1/tts/retroactive/abc123-def456"