---
title: "Generate Tts"
method: POST
path: "/api/audio/tts"
tags: ["audio"]
---

# Generate Tts

`POST /api/audio/tts`

## Request

- Base URL: `https://api.stellara.natlex.it` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stellara.natlex.it/api/audio/tts`
- Auth: HTTP bearer

Generate audio from text using Google Cloud TTS.

Returns MP3 audio bytes directly. Sets `X-TTS-Truncated: 1` and
`X-TTS-Char-Count` headers so Flutter can react to long inputs.

## Request body

- TTSRequest: Body schema for the TTS endpoint.
  - `text` string, required
  - `language` string
  - `auto_summarize` boolean
  - `source_type` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/natlex/apis/stellara-api.md) · [All operations](https://skmtc.dev/natlex/apis/stellara-api/llms.txt) · [OpenAPI document](https://skmtc.dev/natlex/apis/stellara-api/revisions/e576f046b61f?raw)
