> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dubverse.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 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](https://docs.dubverse.ai/api-key.md))
* 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](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.

**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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.