voice-clone

影像 / 音视频 音频 · 播客 · 配音 声音克隆 1 文件 中英

克隆声音做固定主播音色。长期做音频号用

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

说明语言:中英混合

原文描述中英

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".

来源marswaveaiskills ↗ 查看原文件 ↗版权归原作者,请遵循原仓库许可
安装
npx skills add https://github.com/marswaveai/skills --skill voice-clone

需要已安装 skills CLI。也可以直接从源仓库 clone。

在星云中查看 ↗
SKILL.md 原文

When to Use

When NOT to Use

/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

<HARD-GATE> Use the AskUserQuestion tool for every multiple-choice step — do NOT print options as plain text. Ask one question at a time. Wait for the user's answer before proceeding. Confirming a clone spends credits once the quota is used up, so never run voice-clone confirm (or pass --auto-confirm) before the user has explicitly said to keep the voice.

</HARD-GATE>

Prerequisites

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

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:

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:

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

Step 6 — Hand back the speaker ID

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:

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

同类技能
asrlistenhub-voicemusicpodcasttts
本页内容来自开源项目 marswaveai, 版权归原作者所有。
本站仅作技能索引与分享,所有 Skill 版权归其原作者所有。