Voice Clone 标志

Voice Clone

组织
marswaveai
voice-clone

根据参考音频克隆声音,创建可重复使用的 ListenHub 私人发声人,然后用于旁白。触发词包括:“克隆我的声音”“克隆音色”“声音克隆”“语音克隆”“用我的声音”“自定义音色”“复刻声音”“clone my voice”“voice clone”“custom voice”“my own voice”。

Add to TypingMind

概览

发布者marswaveai
代码仓库skills
技能名称voice-clone
星标数
82
复刻数
3
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

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

在 TypingMind 中使用此技能

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

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

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

When to Use

  • User wants to clone a voice from a recording and keep it for later use
  • User says "用我自己的声音朗读", "克隆我的声音", "clone my voice", "custom voice"
  • User wants to manage voices they already cloned (list, rename, delete)
  • User hit the voice limit and needs to free a slot

When NOT to Use

  • User wants a one-off reference-audio clone inside a single generation, with nothing stored — use /listenhub-voice with a reference voice instead
  • User just wants an existing ListenHub voice to read text (use /tts)
  • User wants a podcast, explainer video, music, or AI video (use those skills)

/listenhub-voice vs /voice-clone: /listenhub-voice clones a voice for that one request from a public audio URL and stores nothing. /voice-clone creates a persistent private speaker with its own speaker ID that works in /tts, /podcast, and every other ListenHub surface — at the cost of a confirmation step, a plan quota, and a stored voice slot.

Purpose

Turn 1–6 reference audio files into a reusable private voice:

  1. Create — upload the reference audio; the task clones a temporary voice.
  2. Poll — wait for cloning to finish and listen to the preview.
  3. Confirm — name the voice and keep it. Only then does it become a permanent speaker.

Confirming is what costs: free within the plan's per-period quota, then 300 credits each, and only when the user explicitly authorizes the charge. Unconfirmed tasks expire after 7 days.

Hard Constraints

  • Always check CLI auth following shared/cli-authentication.md
  • Follow shared/cli-patterns.md for CLI execution, errors, and interaction patterns
  • Always read config following shared/config-pattern.md before any interaction
  • Never confirm a voice without the user's explicit go-ahead — confirming can spend 300 credits. Show the preview first, then ask.
  • Never pass --use-credits unless the user said yes to spending credits in this conversation. Without it the server refuses to charge, which is the safe default.
  • Never clone a voice the user does not have consent for. If the recording is not the user's own voice, ask whether they have the speaker's permission before uploading, and stop if they do not.
  • Never invent a speaker ID — read it back from voice-clone speakers after confirming
  • Never expose provider names, internal task states, DAO, MongoDB, or credential details

Prerequisites

bash
listenhub auth status --json

Handle install/login automatically per shared/cli-authentication.md. Voice cloning requires a paid plan — a free account gets an upgrade error at the confirm step.

Workflow

Step 1 — Collect the reference audio

Ask for the audio file path(s) if the user did not provide one. Accept 1–6 local files (.mp3, .wav, .m4a, .flac, .ogg, .aac); a single file is the common case.

Limits worth stating up front: single file ≤5MB, ≤20MB total. Clean speech with no background music clones best.

Step 2 — Confirm consent

If the recording is not the user's own voice, ask whether they have the speaker's permission. Stop if they do not — cloning someone's voice without consent is not something to work around.

Step 3 — Pick the language

Ask which language the recording is in: zh or en.

Step 4 — Create and wait

bash
listenhub voice-clone create --file <path> --lang <zh|en> --json

Repeat --file for multiple files. The command polls until cloning finishes and returns demoAudioUrl, a preview of the temporary voice. --no-wait returns the task ID immediately; listenhub voice-clone get <taskId> --json checks it later.

If the task fails, report the reason plainly — usually the audio was too short, too long, or had no clear speech — and offer to retry with a different recording.

Step 5 — Preview, then ask before keeping it

Give the user the preview URL and ask whether to keep this voice. Do not confirm on your own initiative.

If they want to keep it, ask for a name (max 50 chars) and gender (male / female / other), then:

bash
listenhub voice-clone confirm --task-id <taskId> --name "<name>" --gender <gender> --json

If the response says the quota is used up and 300 credits are needed, ask the user before spending them. Only after an explicit yes:

bash
listenhub voice-clone confirm --task-id <taskId> --name "<name>" --gender <gender> --use-credits --json

Step 6 — Hand back the speaker ID

bash
listenhub voice-clone speakers --json

Read the new voice's speakerInnerId from the list and tell the user they can now use it anywhere a voice is expected, for example:

bash
listenhub tts create --text "..." --speaker-id <speakerInnerId>

Managing Cloned Voices

GoalCommand
List voices, quota, remaining confirmationslistenhub voice-clone speakers --json
Inspect one voicelistenhub voice-clone speaker <speakerId> --json
Rename / change genderlistenhub voice-clone update <speakerId> --name "<name>" --gender <gender> --json
Delete a voice (frees a slot)listenhub voice-clone delete <speakerId> --json

speakers returns maxSpeakers (how many voices the plan may keep at once) and remainingConfirmations (how many more confirmations this period includes). When the user is at maxSpeakers, ask which existing voice to delete before cloning another — deleting frees a slot but does not refund confirmations already spent.

Error Handling

SymptomWhat it meansWhat to do
Upgrade requiredVoice cloning needs a paid planTell the user; do not retry
Credits requiredQuota used up, charge not authorizedAsk before re-running with --use-credits
Voice limit reachedPlan already holds maxSpeakers voicesOffer to list and delete one
Already confirmedThe task was confirmed beforeRead the speaker ID from voice-clone speakers — nothing was charged twice
No speech detected / duration invalidReference audio unusableAsk for a cleaner or longer recording
Busy / temporarily unavailableAnother confirmation is in flight, or a transient failureWait a few seconds and retry the same command

Notes

  • The openapi command group offers the same flow for API-key users, plus Japanese and a one-shot --auto-confirm mode: listenhub openapi voice-clone create --consent .... Prefer the logged-in commands above unless the user is explicitly working with an API key.
  • Cloned voices are private to the account and appear alongside official voices when listing speakers.

常见问题

Voice Clone AI 技能有什么作用?

根据参考音频克隆声音,创建可重复使用的 ListenHub 私人发声人,然后用于旁白。触发词包括:“克隆我的声音”“克隆音色”“声音克隆”“语音克隆”“用我的声音”“自定义音色”“复刻声音”“clone my voice”“voice clone”“custom voice”“my own voice”。

为什么在 TypingMind 中使用 Voice Clone?

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

如何在 TypingMind 中安装 Voice Clone?

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

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

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

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

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

Voice Clone AI 技能免费吗?

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

什么是 AI 技能?

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

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

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

查看全部

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

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