mirror of
https://github.com/Comfy-Org/comfy-skills.git
synced 2026-11-04 23:37:45 +00:00
[PR #35] [MERGED] feat(commands): add /comfy-cloud:clone-voice #33
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-skills#33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-skills/pull/35
Author: @mattmillerai
Created: 9/16/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @mattmillerai
Base:
main← Head:feat/clone-voice-skill📝 Commits (2)
35330acfeat(commands): add /comfy-cloud:clone-voice56bc618fix(clone-voice): resolve the template schema before overrides, wait for the batch before collecting📊 Changes
2 files changed (+118 additions, -0 deletions)
View changed files
📝
README.md(+1 -0)➕
claude-code/commands/clone-voice.md(+117 -0)📄 Description
ELI5
Comfy Cloud can already copy a voice. You give it a short recording of someone talking, then type any sentence, and it says that sentence in their voice. There was no slash command for it, so this adds one.
It starts by asking who the voice belongs to. It only continues if it's your own voice, a voice you have permission to use, or a made-up one.
What this adds
/comfy-cloud:clone-voice— clone a voice from a reference recording and speak arbitrary text with it, using the Chatterbox zero-shot voice-cloning template on Comfy Cloud.The flow is entirely MCP-native:
upload_filethe reference clip → returns anameaudio-chatterbox_tts(one voice, English),audio-chatterbox_tts_multilingual(non-English target, adds alanguageinput) oraudio-chatterbox_tts_dialog(multi-speaker script, oneLoadAudioper speaker) — and callget_template_schemaon itrun_templatewithinput_overrideskeyed by the node ids that schema returns: theLoadAudionode'saudiogets the uploaded name, the Chatterbox TTS node'stext(ordialog_text) gets the line. The ids differ per template, so they come from the schema, not memory; the single-voice template currently resolves to node 6 (LoadAudio) and node 4 (FL_ChatterboxTTS)get_job_status, thenget_outputMulti-line jobs go through one
submit_batch, thenwait_for_batchuntil every job is terminal, thenget_batch_output— rather than N separate runs.Why now
upload_fileaccepts.mp3/.wav/.flac/.oggand hands back a name that drops straight intoLoadAudio. That closes the gap that previously made this awkward — the reference no longer needs a separate API key or a publicly-hosted URL, and the upload and the generation stay in one session.Consent gate
Voice cloning a real person is the sensitive part, so Step 0 is a consent check, not a footnote. The command proceeds only for the user's own voice, a voice they have explicit permission to clone, or a fictional/licensed one — and stops on anything that reads as impersonating someone to a third party or manufacturing a recording they never made.
Provenance
Verified:
audio-chatterbox_ttsbefore opening:upload_filewith a.wavreturned an inputname;run_templatewith node 6audio+ node 4textoverridden → job4c65d7f4-5d2a-49ad-9f06-13a35d40330dcompleted, MP3 retrieved viaget_outputconversion_warning: Node 6 (LoadAudio): 1 extra widget values not mappedthat comes back is the node'saudioUIpreview widget and is non-fatal — the command documents it so nobody cancels a working job over itwait_for_batchbeforeget_batch_output) addressed in56bc618and resolved; CodeRabbit and Socket checks passDeviations:
get_template_schemastep and thewait_for_batchstep were added after the end-to-end run (review follow-up); the multilingual and dialog templates were not run end to end🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.