Voice Clone logo

Voice Clone

Organization
marswaveai
voice-clone

Clone a voice from reference audio into a reusable private ListenHub speaker, then use it for narration. Triggers on: "克隆我的声音", "克隆音色", "声音克隆", "语音克隆", "用我的声音", "自定义音色", "复刻声音", "clone my voice", "voice clone", "custom voice", "my own voice".

Overview

Publishermarswaveai
Repositoryskills
Skill namevoice-clone
Stars
82
Forks
3
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by marswaveai on GitHub. Read the source before you install it.

Installation

Install the Voice Clone AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/marswaveai/skills/tree/main/voice-clone
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Voice Clone in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Voice Clone on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Voice Clone is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Frequently asked questions

What does the Voice Clone AI skill do?

Clone a voice from reference audio into a reusable private ListenHub speaker, then use it for narration. Triggers on: "克隆我的声音", "克隆音色", "声音克隆", "语音克隆", "用我的声音", "自定义音色", "复刻声音", "clone my voice", "voice clone", "custom voice", "my own voice".

Why use Voice Clone on TypingMind?

Because you install it once and use it with any model. Voice Clone is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Voice Clone in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/marswaveai/skills/tree/main/voice-clone. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Voice Clone?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Voice Clone?

As many as you like. As long as a model supports skills, you can use Voice Clone with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Voice Clone AI skill free?

Yes. It is published on GitHub by marswaveai under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇