> For the complete documentation index, see [llms.txt](https://docs.autogon.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.autogon.ai/autogon-qore/voice-cloning/text-to-speech.md).

# Text-To-Speech

## The API responds with the synthesized speech audio file.

<mark style="color:green;">`POST`</mark> `https://api.autogon.ai/api/v1/services/voice-cloning/tts/`

#### Headers

| Name                                           | Type   | Description      |
| ---------------------------------------------- | ------ | ---------------- |
| Content-Type<mark style="color:red;">\*</mark> | String | application/json |

#### Request Body

| Name                                        | Type   | Description                                                         |
| ------------------------------------------- | ------ | ------------------------------------------------------------------- |
| text<mark style="color:red;">\*</mark>      | String | The text that will get converted into speech.                       |
| voice\_id<mark style="color:red;">\*</mark> | String | Unique voice ID to be used, can be gotten from Get voices endpoint. |

{% tabs %}
{% tab title="200: OK Successful request" %}

```json
{
    "success": true,
    "audio_url": "https://demo-voice.mp3"
}
```

{% endtab %}

{% tab title="400: Bad Request Voice ID not found" %}

```json
{
    "error": "An error occured, wrong voice ID"
}
```

{% endtab %}
{% endtabs %}
