---
title: "Text to Speech"
method: POST
path: "/languagelabs/tts"
tags: ["Text-to-Speech"]
---

# Text to Speech

`POST /languagelabs/tts`

## Request

- Base URL: `/` (relative, and the document’s source URL is not known)
- URL: `/languagelabs/tts`
- Auth: one of:
  - none
  - API key in header `K-Customer-ID`
  - none
  - none
  - none
  - HTTP bearer
  - none
  - none
- TypeScript: <https://skmtc.dev/olakrutrim/apis/object-storage-bucket-api/docs/languagelabs/tts/post.ts> (a function with typed inputs; its response is checked against the schema)

Convert input text to an audio file in the specified language and speaker voice.

## Request body

- TTSRequest
  - `input_text` string, required: Input text to synthesize.
  - `input_language` 'eng' | 'guj' | 'ben' | 'hin' | 'kan' | 'mal' | 'mar' | 'tam' | 'tel', required: Language code
  - `input_speaker` 'female' | 'male', required

## Response `200`

Audio file link

- TTSResponse
  - `status` string
  - `data` object
    - `audio_file` string: Download URL for the generated audio file.

## Other responses

- `400`: Bad request
- `401`: Unauthorized

---

[API](https://skmtc.dev/olakrutrim/apis/object-storage-bucket-api.md) - [All operations](https://skmtc.dev/olakrutrim/apis/object-storage-bucket-api/llms.txt) - [OpenAPI document](https://skmtc.dev/olakrutrim/apis/object-storage-bucket-api/revisions/01a982e59414?raw)
