Trillet AI logo

Clone Voice

Clone a voice from an audio file to create a custom voice with a unique voice embedding.

POSThttps://api.trillet.ai/v1/api/voices/clone

Headers

x-api-keystringrequired

API key used for authenticating requests to the API.

x-workspace-idstringrequired

Workspace identifier for the API.

Request Body

The request body should be sent as multipart/form-data.

filefilerequired

Audio file to clone the voice from. Maximum file size: 50MB.

namestring

Name for the cloned voice.

descriptionstring

Description of the cloned voice.

languagestring

Language code for the voice (e.g., "en").

Response Fields

embeddingobject

The voice embedding data generated from the audio file.

voiceobject

The created custom voice object (if name was provided).

_idstring

Unique identifier for the custom voice.

namestring

Name of the custom voice.

{
  "embedding": {
    "data": "...",
    "format": "float32"
  },
  "voice": {
    "_id": "665a1b2c3d4e5f6a7b8c9d0e",
    "name": "My Custom Voice",
    "description": "Cloned from recording",
    "language": "en",
    "workspaceId": "664a1b2c3d4e5f6a7b8c9d0e"
  }
}