voice_clone
Clone a voice from an audio file. Provide a voice ID, audio file path or URL, and optional text for a demo.
Instructions
Clone a voice using provided audio files. The new voice will be charged upon first use.
COST WARNING: This tool makes an API call to Minimax which may incur costs. Only use when explicitly requested by the user.
Args:
voice_id (str): The id of the voice to use.
file (str): The path to the audio file to clone or a URL to the audio file.
text (str, optional): The text to use for the demo audio.
is_url (bool, optional): Whether the file is a URL. Defaults to False.
Returns:
Text content with the voice id of the cloned voice.
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": {
"voice_id": "<voice_id>",
"file": "<file>",
"text": "<text>"
},
"name": "voice_clone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| text | Yes | ||
| is_url | No | ||
| voice_id | Yes | ||
| output_directory | No |