Clone a voice from a recording
clone_voiceCreate a voice that sounds like a specific person, from one short recording (about 30 seconds of clean speech). Almost any audio file works — MP3, WAV, M4A, AAC, OGG, FLAC, WebM and more are converted server-side, and anything longer than 30 seconds is trimmed. The audio must be passed as base64, so this suits a local file you can read and encode; there is no upload URL. Only clone a voice you own or have permission to use. Uses one of the cloned-voice slots included in the plan; costs no points.
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": {
"name": "<name>",
"language": "<language>",
"audio_base64": "<audio_base64>"
},
"name": "clone_voice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A name for the cloned voice | |
| language | Yes | The language spoken in the recording — a name or code from list_voice_languages (e.g. "English", "EN_US"). Use "auto" to let the provider detect it. | |
| transcript | No | What is said in the recording. Optional, but it noticeably improves the clone. | |
| audio_base64 | Yes | The recording, base64-encoded (no data: prefix). Any common audio format; up to ~8 MB of base64 (roughly a 6 MB file), trimmed to the first 30 seconds. | |
| remove_background_noise | No | Clean up background noise before cloning (default true) |