Dubverse AI home page
Search...
⌘K
Support
Get Started
Get Started
Search...
Navigation
Text-to-Speech API
Documentation
API Reference
Tech Blog
API Reference
POST
Text to Speech
On this page
Prerequisites
API Request Details
HTTP Method
Endpoint URL
Headers
Request Body
Text-to-Speech API
Learn how to make your first Text-to-Speech API call with Dubverse
Prerequisites
Before you begin, ensure you have:
Your Dubverse API key (If you haven’t obtained one, visit the
API Key page
)
A tool for making HTTP requests (e.g., Postman, cURL, or your preferred programming language)
API Request Details
HTTP Method
POST
string
required
The HTTP method for the TTS API call.
Endpoint URL
https://audio.dubverse.ai/api/tts
string
required
The endpoint URL for the TTS API.
Headers
X-API-Key
string
required
Your Dubverse API key.
Content-Type
string
required
application/json
Request Body
text
string
required
The input text you want to convert to speech.
speaker_no
number
required
The ID of the speaker voice.
config
object
Additional configuration options.
Show config
use_streaming_response
boolean
Set to
true
for streamed audio,
false
for a complete audio file response.
sample_rate
number
default:
"22050"
Audio sample rate in Hz. Accepts values between 8000 and 48000. Only supported by ‘neo.one’ speakers.
instructions
string
Optional instructions to guide voice generation. Only supported for ‘Mermish’ speakers.
callback_url
string
URL to receive the API response if different from the origin.
Assistant
Responses are generated using AI and may contain mistakes.