Documentation Index
Fetch the complete documentation index at: https://docs.upliftai.org/llms.txt
Use this file to discover all available pages before exploring further.
client.tts.enqueue(request)
Enqueue a TTS job and retrieve the audio later. Returns a temporaryUrl you can pass directly to a frontend, WhatsApp, or <audio> element — no auth required.
client.tts.enqueueStream(request)
Same as enqueue() but uses the streaming endpoint for the initial synthesis.
client.tts.retrieve(mediaId)
Fetch the audio for a previously enqueued job.
Enqueue Response
| Field | Type | Description |
|---|---|---|
mediaId | string | Unique ID to retrieve the audio later |
token | string | Auth token for retrieval |
temporaryUrl | string | Pre-signed URL — no auth needed, pass to frontends |
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text to synthesize |
voiceId | string | Yes | Voice profile ID |
outputFormat | string | No | Audio format — defaults to WAV_22050_32 |
phraseReplacementConfigId | string | No | ID from phrase replacements |
When to Use Async
- Long texts where synthesis takes time
- Background processing pipelines
- When you need a shareable URL (WhatsApp messages, emails, frontend
<audio>tags)
