---
title: "Voice Cloned TTS Stream"
method: POST
path: "/api/v1/tts/sse"
---

# Voice Cloned TTS Stream

`POST /api/v1/tts/sse`

## Headers

- `X-API-Key-ID` string, required

## Request body

- VoiceCloneRequest — Request body for voice cloned TTS inference.
  - `text` string, required — The text to synthesize into speech.
  - `model` 'vachana-vc-v1' — Supported voice cloning model.
  - `speaker_embedding` SpeakerEmbedding, required — Voice clone embedding obtained from the Voice Clone Embeddings endpoint.
    - `embedding` string, required — The base64-encoded voice clone embedding tensor.
    - `shape` integer[], required — Shape of the embedding tensor, e.g. [1, 768].
    - `dtype` string, required — Data type of the embedding tensor, e.g. torch.bfloat16.
  - `audio_config` AudioConfig, required — Audio output configuration.
    - `sample_rate` integer — Sample rate in Hz
    - `num_channels` integer — Number of audio channels
    - `sample_width` integer — Sample width in bytes
    - `encoding` 'linear_pcm' | 'oggopus' — Supported audio encodings.
    - `container` 'raw' | 'mp3' | 'wav' | 'mulaw' | 'ogg' — Supported audio containers.
    - `bitrate` '96k' | '128k' | '192k' — Supported MP3 bitrate options (only used when container is mp3).

## Response `200`

Successful Server-Sent Events stream

## Other responses

- `400` — Bad Request
- `429` — Too Many Requests
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/gnani/apis/vachana-speech-to-text-api.md) · [All operations](https://skmtc.net/gnani/apis/vachana-speech-to-text-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gnani/vachana-speech-to-text-api/versions/d9f838824278/schema)
