voice_clone
Clone voices from audio files to generate synthetic speech using ElevenLabs' technology. Provide audio samples to create a digital voice replica for text-to-speech applications.
Instructions
Create an instant voice clone of a voice using provided audio files.
⚠️ COST WARNING: This tool makes an API call to ElevenLabs which may incur costs. Only use when explicitly requested by the user.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| files | Yes | ||
| description | No |
Implementation Reference
- elevenlabs_mcp/server.py:511-532 (handler)The voice_clone tool handler function that creates an instant voice clone from provided audio files using the ElevenLabs API. It handles input files, calls the API, and returns success information including the new voice ID.@mcp.tool( description="""Create an instant voice clone of a voice using provided audio files. ⚠️ COST WARNING: This tool makes an API call to ElevenLabs which may incur costs. Only use when explicitly requested by the user. """ ) def voice_clone( name: str, files: list[str], description: str | None = None ) -> TextContent: input_files = [str(handle_input_file(file).absolute()) for file in files] voice = client.voices.ivc.create( name=name, description=description, files=input_files ) return TextContent( type="text", text=f"""Voice cloned successfully: Name: {voice.name} ID: {voice.voice_id} Category: {voice.category} Description: {voice.description or "N/A"}""", )