For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Connect
BlogHelp CenterAPI PricingSign up
OverviewElevenCreativeElevenAgentsElevenAPIReception AIAPI referenceChangelog
OverviewElevenCreativeElevenAgentsElevenAPIReception AIAPI referenceChangelog
  • Get started
    • Quickstart
    • Agents Quickstart
    • Choosing the right model
  • Tutorials
    • Text to Speech
    • Speech to Text
    • Speech Engine
    • Music
    • Text to Dialogue
    • Voice Changer
    • Voice Isolator
    • Dubbing
    • Sound effects
    • Forced Alignment
  • Concepts
    • Understanding audio streaming
    • Understanding latency
    • Voice cloning
  • How-to guides
      • Instant voice cloning
      • Professional voice cloning
      • Voice design
      • Remix a voice
  • Reference
    • Libraries & SDKs
    • Errors
    • Agent tooling
    • Webhooks
    • Zero Retention Mode
    • Breaking changes policy
    • UI components
    • Example projects
    • Next.js template
    • Showcase
  • Private deployment
    • Overview
LogoLogo
Login
Login
Connect
BlogHelp CenterAPI PricingSign up
On this page
  • Using the Voice Design API
  • Next steps
How-to guidesVoices

Voice Remixing quickstart

This guide shows you how to remix an existing voice to create a new one.
Was this page helpful?
Previous

Generate audio in real-time

This guide shows you how to generate audio in real-time via a WebSocket connection.

Next
Built with

This guide will show you how to create an entirely new voice by remixing an existing one.

Using the Voice Design API

This guide assumes you have set up your API key and SDK. Complete the quickstart first if you haven’t. To play audio through your speakers, you may also need MPV and/or ffmpeg.

1

Make the API request

Remixing a voice is a two step process:

  1. Generate a preview of the new voice by providing a voice ID and a prompt.
  2. Create the new voice from the preview.

We’ll start by generating a preview of the new voice.

Create a new file named example.py or example.mts, depending on your language of choice and add the following code:

You can only remix previously designed voices, IVC or PVC voices, and any voices from the Voice Library that have infinite notice periods.

1# example.py
2from dotenv import load_dotenv
3from elevenlabs.client import ElevenLabs
4from elevenlabs.play import play
5import base64
6
7load_dotenv()
8
9elevenlabs = ElevenLabs(
10 api_key=os.getenv("ELEVENLABS_API_KEY"),
11)
12
13voices = elevenlabs.text_to_voice.remix(
14 voice_id="JBFqnCBsd6RMkjVDRZzb"
15 voice_description="Use a higher pitch and change to a Boston accent.",
16 text="Of course I'm a Bostonian, I've lived here all my life!",
17)
18
19for preview in voices.previews:
20 # Convert base64 to audio buffer
21 audio_buffer = base64.b64decode(preview.audio_base_64)
22
23 print(f"Playing preview: {preview.generated_voice_id}")
24
25 play(audio_buffer)
2

Execute the code

1python example.py

You should hear the generated voice previews playing through your speakers, one at a time.

3

Add generated voice to your library

Once you’ve generated the previews and picked your favorite, you can add it to your voice library via the generated voice ID so it can be used with other APIs.

1voice = elevenlabs.text_to_voice.create(
2 voice_name="Bostonian",
3 voice_description="A high pitched Bostonian accent.",
4 # The generated voice ID of the preview you want to use,
5 # using the first in the list for this example
6 generated_voice_id=voices.previews[0].generated_voice_id
7)
8
9print(voice.voice_id)

Next steps

Voice design

Generate a new voice from a text description rather than remixing an existing one.

API reference

Full Voice Remix API reference and parameters.