Voice Changer 标志

Voice Changer

组织
elevenlabs
voice-changer

Transform the voice in an audio recording into a different target voice while preserving emotion, timing, and delivery using the ElevenLabs Voice Changer (speech-to-speech) API. Use when converting one voice to another, changing the speaker/narrator of an existing recording, dubbing a voice-over in a different voice, creating character voices from a scratch performance, anonymizing a speaker, or any "voice conversion / voice transfer / speech-to-speech" task. Make sure to use this skill whenever the user mentions voice changing, voice conversion, speech-to-speech, swapping a voice in audio, re-voicing a clip, or applying a different voice to an existing recording — even if they don't explicitly say "voice changer". Do not use this skill to create or clone a new voice from a voice sample — that is voice cloning (IVC/PVC), a separate feature; this skill only converts an existing recording into an existing voice_id.

Add to TypingMind

概览

发布者elevenlabs
代码仓库skills
技能名称voice-changer
星标数
462
复刻数
75
附带文件
1
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 elevenlabs 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Voice Changer AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/elevenlabs/skills/tree/main/voice-changer
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/elevenlabs/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/voice-changer .claude/skills/voice-changer
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Voice Changer,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Voice Changer。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Voice Changer 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

ElevenLabs Voice Changer

Transform the voice in an audio recording into a different target voice. Voice Changer (previously called Speech-to-Speech — the API endpoint and SDK methods still use the speech_to_speech / speechToSpeech name) keeps the original performance — emotion, pacing, intonation, breaths, whispers, laughs, cries — and only swaps who is speaking.

Setup: See Installation Guide. For JavaScript, use @elevenlabs/* packages only.

Key Facts

  • Maximum input length: 5 minutes per request — split longer recordings into chunks and stitch the outputs.
  • Maximum file size: 50 MB per request — compress to MP3 if your source is larger.
  • Pricing: 1,000 characters per minute of audio processed (duration-based, not text-based).
  • Recommended model: eleven_multilingual_sts_v2 — often outperforms eleven_english_sts_v2 even for English-only content.

Quick Start

Python

python
from elevenlabs import ElevenLabs

client = ElevenLabs()

with open("source.mp3", "rb") as audio_file:
    audio_stream = client.speech_to_speech.convert(
        voice_id="JBFqnCBsd6RMkjVDRZzb",  # George
        audio=audio_file,
        model_id="eleven_multilingual_sts_v2",
        output_format="mp3_44100_128",
    )

with open("converted.mp3", "wb") as f:
    for chunk in audio_stream:
        f.write(chunk)

JavaScript

javascript
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
import { createReadStream, createWriteStream } from "fs";

const client = new ElevenLabsClient();

const audioStream = await client.speechToSpeech.convert("JBFqnCBsd6RMkjVDRZzb", {
  audio: createReadStream("source.mp3"),
  modelId: "eleven_multilingual_sts_v2",
  outputFormat: "mp3_44100_128",
});

audioStream.pipe(createWriteStream("converted.mp3"));

CLI

bash
elevenlabs speech-to-speech convert \
  --voice-id JBFqnCBsd6RMkjVDRZzb \
  --audio source.mp3 \
  --model-id eleven_multilingual_sts_v2 \
  --output-format mp3_44100_128 \
  --output converted.mp3

Parameters

ParameterTypeDefaultDescription
voice_idstring (required)—Target voice to speak in. Use a pre-made voice ID, a cloned voice, or a voice from the library
audiofile (required)—Source audio whose performance (emotion, timing, delivery) will be preserved
model_idstringeleven_english_sts_v2eleven_multilingual_sts_v2 for 29 languages, eleven_english_sts_v2 for English-only
output_formatstringmp3_44100_128See output formats table below
voice_settingsJSON string—Override stored voice settings for this request only
seedinteger—Best-effort deterministic sampling (0 – 4294967295)
remove_background_noisebooleanfalseRun the isolation model on the input before conversion
file_formatstringotherother for any encoded audio, or pcm_s16le_16 for 16-bit PCM mono @ 16kHz little-endian (lower latency)
optimize_streaming_latencyint (query)—0–4. Trade quality for latency. 4 is fastest but disables the text normalizer
enable_loggingboolean (query)trueSet to false for zero-retention mode (enterprise only — disables history/stitching)

Models

Model IDLanguagesBest For
eleven_multilingual_sts_v229Recommended for everything — often outperforms the English model even on English audio
eleven_english_sts_v2EnglishAPI default — English-only fallback

Only models whose can_do_voice_conversion property is true can be used here. Voice Changer does not currently have a low-latency "flash/turbo" tier — if you need one, keep pcm_s16le_16 input, an opus_* / low-bitrate mp3_* output, and raise optimize_streaming_latency.

Languages (eleven_multilingual_sts_v2)

English (US, UK, AU, CA), Japanese, Chinese, German, Hindi, French (FR, CA), Korean, Portuguese (BR, PT), Italian, Spanish (ES, MX), Indonesian, Dutch, Turkish, Filipino, Polish, Swedish, Bulgarian, Romanian, Arabic (SA, AE), Czech, Greek, Finnish, Croatian, Malay, Slovak, Danish, Tamil, Ukrainian, Russian.

Target Voices

Use any voice ID from pre-made voices, your cloned voices, or the voice library.

Popular voices:

  • JBFqnCBsd6RMkjVDRZzb — George (male, narrative)
  • EXAVITQu4vr4xnSDxMaL — Sarah (female, soft)
  • onwK4e9ZLuTAKqWW03F9 — Daniel (male, authoritative)
  • XB0fDUnXU5powFXDhCwa — Charlotte (female, conversational)
python
voices = client.voices.get_all()
for voice in voices.voices:
    print(f"{voice.voice_id}: {voice.name}")

Converting from a URL

python
import requests
from io import BytesIO
from elevenlabs import ElevenLabs

client = ElevenLabs()

audio_url = "https://storage.googleapis.com/eleven-public-cdn/audio/marketing/nicole.mp3"
response = requests.get(audio_url)
audio_data = BytesIO(response.content)

audio_stream = client.speech_to_speech.convert(
    voice_id="JBFqnCBsd6RMkjVDRZzb",
    audio=audio_data,
    model_id="eleven_multilingual_sts_v2",
    output_format="mp3_44100_128",
)

with open("converted.mp3", "wb") as f:
    for chunk in audio_stream:
        f.write(chunk)

Voice Settings Override

Fine-tune the target voice for a single request without changing its stored defaults:

python
from elevenlabs import VoiceSettings

audio_stream = client.speech_to_speech.convert(
    voice_id="JBFqnCBsd6RMkjVDRZzb",
    audio=audio_file,
    model_id="eleven_multilingual_sts_v2",
    voice_settings=VoiceSettings(
        stability=0.5,
        similarity_boost=0.75,
        style=0.0,
        use_speaker_boost=True,
    ),
)
  • Stability: lower = more emotional range (follows the source more freely), higher = steadier delivery.
  • Similarity boost: higher = closer to the target voice's timbre, may amplify source artifacts.
  • Style: exaggerates the target voice's unique characteristics (v2+ models).
  • Speaker boost: post-processing to sharpen clarity of the target voice.

Cleaning Up Noisy Source Audio

If the input recording is noisy, either pre-process with the voice-isolator skill or pass remove_background_noise=True to do it in a single call:

python
audio_stream = client.speech_to_speech.convert(
    voice_id="JBFqnCBsd6RMkjVDRZzb",
    audio=audio_file,
    model_id="eleven_multilingual_sts_v2",
    remove_background_noise=True,
)

Cleaner input almost always produces better conversion — the model is trying to match phonemes and prosody, and background noise gets in the way.

Low-Latency PCM Input

If you already have raw 16-bit PCM mono @ 16kHz, passing file_format="pcm_s16le_16" skips decoding and reduces latency:

python
audio_stream = client.speech_to_speech.convert(
    voice_id="JBFqnCBsd6RMkjVDRZzb",
    audio=pcm_bytes,
    model_id="eleven_multilingual_sts_v2",
    file_format="pcm_s16le_16",
)

Pair this with optimize_streaming_latency (0–4) as a query param for further latency reductions at some quality cost.

Output Formats

FormatDescription
mp3_44100_128MP3 44.1kHz 128kbps (default) — good for web/apps
mp3_44100_192MP3 44.1kHz 192kbps (Creator+) — higher quality
mp3_44100_64MP3 44.1kHz 64kbps — smaller files
mp3_22050_32MP3 22.05kHz 32kbps — smallest MP3
pcm_16000Raw PCM 16kHz — real-time pipelines
pcm_24000Raw PCM 24kHz — good streaming balance
pcm_44100Raw PCM 44.1kHz (Pro+) — CD quality
pcm_48000Raw PCM 48kHz (Pro+) — highest quality
ulaw_8000μ-law 8kHz — Twilio / telephony
alaw_8000A-law 8kHz — telephony
opus_48000_64Opus 48kHz 64kbps — efficient streaming

Deterministic Output

Pass a seed to make repeated conversions of the same input return (best-effort) identical audio — useful for testing and A/B comparisons.

python
audio_stream = client.speech_to_speech.convert(
    voice_id="JBFqnCBsd6RMkjVDRZzb",
    audio=audio_file,
    model_id="eleven_multilingual_sts_v2",
    seed=12345,
)

Input Audio Best Practices

The conversion quality is bounded by the input recording — the model can only swap the timbre, not rescue a bad source. A few practical rules:

  • Be expressive. Whisper, shout, laugh, cry — the model preserves all of it. Flat input gives you flat output.
  • Watch microphone gain. Too quiet and the model under-detects phonemes; too loud and clipping bleeds into the conversion. Aim for healthy peaks, no clipping.
  • Accent and cadence transfer from the source, not the target. If you read in an American accent and target the British "George" voice, you get George's timbre with an American accent. To dub into a different accent or language, record someone speaking in that target accent/language and convert into a cloned/library voice.
  • Clean up noise first. Either pass remove_background_noise=True or run the source through the voice-isolator skill before conversion. Noise hurts more here than in TTS.
  • Split long recordings. Anything over 5 minutes must be chunked. Cut at natural pauses, convert each piece, and concatenate the resulting audio.

Common Workflows

  • Re-voice a narration — keep the performance of a scratch recording, swap in a different narrator voice.
  • Localize / dub — convert a voice-over into the same speaker's cloned voice in another language (using eleven_multilingual_sts_v2).
  • Create character voices — act out a line yourself, convert into a distinctive character voice for games or animation.
  • Anonymize a speaker — replace a recognizable voice with a neutral pre-made voice while preserving what was said and how.
  • Pair with voice-isolator — isolate the source voice first (or set remove_background_noise=True) for noisy field recordings before conversion.
  • Pair with voice cloning — clone a target voice from a short sample, then use its voice_id here as the conversion target.

Error Handling

python
try:
    audio_stream = client.speech_to_speech.convert(
        voice_id="JBFqnCBsd6RMkjVDRZzb",
        audio=audio_file,
        model_id="eleven_multilingual_sts_v2",
    )
except Exception as e:
    print(f"Voice changer failed: {e}")

Common errors:

  • 401: Invalid API key
  • 422: Invalid parameters (check voice_id, model_id, or file_format vs the supplied audio)
  • 429: Rate limit exceeded

References

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Voice Changer AI 技能有什么作用?

Transform the voice in an audio recording into a different target voice while preserving emotion, timing, and delivery using the ElevenLabs Voice Changer (speech-to-speech) API. Use when converting one voice to another, changing the speaker/narrator of an existing recording, dubbing a voice-over in a different voice, creating character voices from a scratch performance, anonymizing a speaker, or any "voice conversion / voice transfer / speech-to-speech" task. Make sure to use this skill whenever the user mentions voice changing, voice conversion, speech-to-speech, swapping a voice in audio,...

为什么在 TypingMind 中使用 Voice Changer?

因为您只需安装一次,就能搭配任何模型使用。Voice Changer 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Voice Changer?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/elevenlabs/skills/tree/main/voice-changer。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Voice Changer?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Voice Changer 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Voice Changer 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Voice Changer AI 技能免费吗?

是的。elevenlabs 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇