v1

latestOpenAPI 3.1.02026-07-2241314.7 KB

Voice Cloned TTS Stream

post/api/v1/tts/sse

Headers

X-API-Key-IDstring required

Request body

textstring required

The text to synthesize into speech.

model'vachana-vc-v1'

Supported voice cloning model.

Example request

{
  "text": "नमस्ते, आप कैसे हैं?",
  "model": "vachana-vc-v1",
  "speaker_embedding": {
    "embedding": "<base64-encoded embedding>",
    "shape": [
      1,
      768
    ],
    "dtype": "torch.bfloat16"
  },
  "audio_config": {
    "sample_rate": 44100,
    "num_channels": 1,
    "sample_width": 2,
    "encoding": "linear_pcm",
    "container": "wav"
  }
}

Response

Successful Server-Sent Events stream