Developer documentation for Deepdub voice AI APIs. Built with Mintlify.
Docs site: docs.deepdub.com
| API | Protocol | Description |
|---|---|---|
| REST TTS | HTTP POST | Stream generated audio as a chunked HTTP response |
| WebSocket TTS | WebSocket | Stream audio chunks in real-time for low-latency playback |
| Gender Detection | HTTP POST | Classify speaker gender from audio |
| Voice Management | HTTP REST | Upload, list, update, and delete voice prompts |
| Format | REST API | WebSocket | WebSocket streaming input (ctx/isFinal) |
|---|---|---|---|
mp3 |
Yes (default) | Yes | No |
opus |
Yes | Yes | No |
mulaw |
Yes | Yes | Yes |
wav |
No | Yes (default) | Yes |
s16le |
No | Yes | Yes |
Note: The REST API only supports
mp3,opus, andmulaw. Forwavors16leoutput, use the WebSocket API.
The internal generation runs at 48 kHz and is resampled to the requested rate. If no sample rate is specified, mulaw defaults to 8000 Hz.
| SDK | Install | Docs |
|---|---|---|
| Python | pip install deepdub |
Python SDK |
| JavaScript / Node.js | npm install @deepdub/node |
JavaScript SDK |
Use the free trial API key to get started — no sign-up required:
dd-00000000000000000000000065c9cbfe
Install the Mintlify CLI to preview docs locally:
npm i -g mintlify
mintlify devChanges pushed to main are deployed automatically.