Skip to main content
POST
https://api.trillet.ai
/
v1
/
api
/
voices
Create Custom Voice
curl --request POST \
  --url https://api.trillet.ai/v1/api/voices \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "embedding": {},
  "language": "<string>"
}
'
{
  "_id": "665a1b2c3d4e5f6a7b8c9d0e",
  "name": "Custom Sales Voice",
  "description": "Professional sales voice",
  "language": "en",
  "workspaceId": "664a1b2c3d4e5f6a7b8c9d0e",
  "createdAt": "2024-06-01T09:00:00.000Z"
}

Headers

x-api-key
string
required
API key used for authenticating requests to the API.
x-workspace-id
string
required
Workspace identifier for the API.

Request Body

name
string
required
Name for the custom voice.
description
string
Description of the custom voice.
embedding
object
required
Voice embedding object generated from voice cloning.
language
string
Language code for the voice (e.g., “en”).

Response Fields

_id
string
Unique identifier for the custom voice.
name
string
Name of the custom voice.
description
string
Description of the custom voice.
workspaceId
string
Workspace that owns the custom voice.
createdAt
string
Timestamp when the voice was created.
{
  "_id": "665a1b2c3d4e5f6a7b8c9d0e",
  "name": "Custom Sales Voice",
  "description": "Professional sales voice",
  "language": "en",
  "workspaceId": "664a1b2c3d4e5f6a7b8c9d0e",
  "createdAt": "2024-06-01T09:00:00.000Z"
}