Skip to main content
POST
/
api
/
v1
/
tts
/
voice-clone
/
embeddings
Voice Clone Embeddings
curl --request POST \
  --url https://api.vachana.ai/api/v1/tts/voice-clone/embeddings \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-API-Key-ID: <x-api-key-id>' \
  --form audio_file='@example-file'
{
  "success": true,
  "message": "Voice embeddings generated successfully",
  "data": {
    "voice_clone_embedding": {
      "embedding": "<string>",
      "shape": [
        1,
        768
      ],
      "dtype": "torch.bfloat16"
    }
  }
}

Overview

Generate voice clone embeddings for use with Vachana AI TTS. Upload an audio file and retrieve a multi-dimensional embedding suitable for voice cloning.

Headers

X-API-Key-ID
string
required

API Key ID for authentication

Body

multipart/form-data
audio_file
file
required

The audio file to generate embeddings for

Response

200 - application/json

Voice embeddings generated successfully

success
boolean
Example:

true

message
string
Example:

"Voice embeddings generated successfully"

data
object