Clone Voice
beatra.voices.cloneClone a voice from a clean single-speaker sample. By default the clone is charged once and the voice is ready for speech as soon as the task succeeds. Set preview_first=true to hear it before paying: the clone and a short fixed preview are free, the voice waits (status pending_activation) up to 3 days, and one beatra.voices.activate call charges the clone price and makes it ready; a preview that is not activated is deleted automatically. Offer preview_first when the user asks to hear the voice before paying, or when a paid clone is refused for insufficient balance and the refusal offers it. Call only after the user explicitly confirms they have the rights to clone it, and set consent_attested=true. This call consumes Beatra credits unless preview_first=true. It creates an asynchronous task. Submit exactly once, then poll with beatra.tasks.get. Reuse the same client_request_id only for an identical retry.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sample": "<sample>",
"display_name": "<display_name>",
"consent_attested": "<consent_attested>",
"client_request_id": "<client_request_id>"
},
"name": "beatra.voices.clone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Clone engine. Omit unless the user explicitly asks for a specific clone engine; 'auto' (the default) lets the platform choose. | auto |
| gender | No | Optional speaker gender tag (male, female, or neutral); inferred automatically when omitted and unambiguous. | |
| prompt | No | Optional short aligned excerpt: audio shorter than 8 seconds plus its verbatim transcript. Used only by models whose card sets prompt_accepted=true; other models ignore it and return an option_ignored warning. | |
| sample | Yes | Clean single-speaker voice sample (uploaded artifact or HTTPS URL), ~10s-5min | |
| persona | No | Optional short description of timbre, pace, and character (up to 200 characters). | |
| language | No | Optional BCP-47 language hint for the cloned voice | |
| use_case | No | Optional recommended scenarios for this cloned voice (up to 5 items). | |
| age_group | No | Optional speaker age group (child, youth, adult, or senior); inferred automatically when omitted and unambiguous. | |
| display_name | Yes | ||
| model_options | No | Model-specific options. Only keys listed in the selected model's card controls (beatra.models.list) are used; leave it unset in normal use. | |
| preview_first | No | Optional. true: hear the voice before paying. The clone and a short fixed preview are free; the voice waits (status pending_activation) up to 3 days until beatra.voices.activate charges the model's clone price once, and it is deleted automatically if not activated. Omit it for the normal clone, charged once and ready at once. Supported by minimax-voice-clone and elevenlabs-voice-clone (and auto). At most 3 previews started per account per UTC day and 5 waiting at once. Set language to the sample's spoken language so the fixed preview sentence matches it. | |
| consent_attested | Yes | Caller asserts it has the rights to clone this voice. Recorded, not verified. | |
| client_request_id | Yes | Stable retry identity for this billable operation. Reuse only for the exact same generation arguments. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | ||
| error | No | ||
| usage | No | ||
| status | No | ||
| billing | No | ||
| task_id | No | ||
| terminal | No | ||
| artifacts | No | ||
| resolved_model | No |