---
title: "Text To Speech"
method: POST
path: "/tts"
---

# Text To Speech

`POST /tts`

Generate speech to text. The audio is generated at 24khz.

- **text**: The text input for TTS
- **user_id**: The user id making the request.
- **seed**: A random seed to use for the voice. All voices are random and using the same seed will generate same voice

NOTE:

The tts is limited to 1 min length. Please reach out to us if you need longer audio. The API will return a JSON object that looks like:

```
{
        "url":"05_06_2023/test-a8ee1618-a767-46f6-be30-dc8e3ae1b8ad/animations/C480BDD3-6E47-4949-B0C2-3C1C0E388391.tts.mp3",
        "frames":null,
        "task_id":"84289e12-562a-4fa8-8d43-895d050b54b4",
        "task_status":"PENDING"
}
```

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/puppetry/apis/puppetry-api.md) · [All operations](https://skmtc.net/puppetry/apis/puppetry-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/puppetry/puppetry-api/revisions/b1edb3c2f3e8/schema)
