Skip to main content
POST
Voice Cloned TTS Inference

Overview

1

Step 1 — Generate a voice embedding

Upload a reference audio clip to get a speaker_embedding. See Voice Clone Embeddings.
2

Step 2 — Synthesize with your cloned voice — this page

Pass the speaker_embedding from Step 1 to this endpoint to synthesize audio in your cloned voice.
Synthesize audio using your cloned voice. Pass the speaker_embedding obtained from Voice Clone Embeddings along with your text. The full audio is returned in one response. For streaming playback, see Voice Cloning Streaming or Voice Cloning Realtime.

Endpoint

Authentication

Request Body

string
required
The text to synthesize into speech
string
Voice cloning model. Use vachana-vc-v1. Automatically set when speaker_embedding is provided — you may omit this field.
object
required
Audio output configuration
object
required
Voice clone embedding obtained from the Voice Clone Embeddings endpoint

Response

Returns binary audio data in the format specified by audio_config.container:
  • audio/wav for WAV files
  • audio/mpeg for MP3 files
  • audio/ogg for OGG files

Example Request

Error Responses

Text-to-Speech and Voice Cloning (REST and SSE) return errors in a flat body, not the error.type envelope used by Speech-to-Text:
Authentication and rate-limit errors use the shape shown below. Some validation failures on the embeddings endpoint can also return 422 with a {"detail": [...]} body. Authentication and rate-limit errors do not use the success / error envelope. They look like this:
The same shapes are returned by REST, Batch, Text-to-Speech, Voice Cloning and the Realtime handshake (as an HTTP response before the WebSocket opens). See Error Reference for all Speech API errors.

Authorizations

X-API-Key-ID
string
header
required

Headers

X-API-Key-ID
string
required

Body

application/json

Request body for voice cloned TTS inference.

text
string
required

The text to synthesize into speech.

speaker_embedding
SpeakerEmbedding · object
required

Voice clone embedding from the Voice Clone Embeddings endpoint.

audio_config
AudioConfig · object
required

Audio output configuration.

model
enum<string>

Voice cloning model. Automatically set to vachana-vc-v1 when speaker_embedding is provided.

Available options:
vachana-vc-v1

Response

Successful audio synthesis

The response is of type file.