clone_voice
Clones a voice from a reference audio sample and synthesizes input text in that voice, enabling personalized TTS without recording new speech.
Instructions
Clone a voice from an audio sample (requires XTTS model)
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": {
"text": "<text>",
"reference_audio": "<reference_audio>"
},
"name": "clone_voice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to speak in the cloned voice | |
| language | No | Language code (e.g., 'en', 'es', 'fr') | en |
| output_path | No | Path where the output audio will be saved | |
| reference_audio | Yes | Path to the reference audio file for voice cloning |