cURL
curl --request POST \ --url https://api.trillet.ai/v1/api/voices/clone \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --header 'x-workspace-id: <x-workspace-id>' \ --data ' { "name": "<string>", "description": "<string>", "language": "<string>" } '
{ "embedding": { "data": "...", "format": "float32" }, "voice": { "_id": "665a1b2c3d4e5f6a7b8c9d0e", "name": "My Custom Voice", "description": "Cloned from recording", "language": "en", "workspaceId": "664a1b2c3d4e5f6a7b8c9d0e" } }
Clone a voice from an audio file to create a custom voice with a unique voice embedding.
multipart/form-data