/loudkit:clone-voicefrom loudkit
Creates a voice profile from a short recording using loudkit, running locally and offline. Handles consent checks and guides the user through cloning steps.
Ships in loudkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
loudkit turns 5 to 10 seconds of clean speech into a voice profile: a file of about 150 KB that works with both models. Cloning runs on the user's computer; the recording is not uploaded anywhere.
Before anything else, ask whose voice is in the recording, unless the user has already said. Continue only when it is one of these:
Refuse, and say why, when the request is to:
The full policy is in the project's RESPONSIBLE_USE.md. loudkit cannot check who owns a voice; the user is responsible for that.
"loudkit[onnx,audio,hub]", fetch the cloning graphs with loudkit download loudreader/loudr-1 --for onnx --with-cloning, and add --device onnx to
loudkit clone. Never commit the profile or the recording to a repository.Install with permission. Cloning needs the enroll extra and fetches
about 0.5 GB of enrollment models once, in addition to the 0.75 GB
synthesis model. Ask before you install:
pip install "loudkit[torch,audio,enroll,hub]"
Check the recording. It must be one local WAV or FLAC file with one speaker. 5 to 10 seconds of clean speech without music or noise is right. Over 30 seconds is refused, and so are silence and clips under one second.
afconvert -f WAVE -d LEI16 in.m4a out.wav
on macOS, or ffmpeg -i in.m4a out.wav.Name the language. Ask which language the voice will speak. It is
required, and a wrong language makes the voice read text with the wrong
rules. Use a code such as en, pl, de.
Clone.
loudkit clone recording.wav --name my-voice --language en
This writes voices/my-voice.safetensors and prints the command that
speaks with it. Add --force only if the user agrees to overwrite an
existing profile.
Try it. Render one sentence and let the user listen:
loudkit speak "This is my voice, made by loudkit." --voice voices/my-voice.safetensors -o test.wav --play
If it sounds wrong, the recording is the usual cause. Suggest another 5 to 10 seconds: one speaker, steady level, no background sound.
--no-provenance to hide that.lk.voice("voices/my-voice.safetensors") in Python,
or the enroll and load calls of the other ports (see the
add-offline-tts skill).What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/add-offline-ttsAdd offline, on-device text to speech to a software project with loudkit, an open-source engine with open weights, in Python, JavaScript or TypeScript (Node), Rust, Go or Swift (macOS, iOS). Use when the user wants speech output in their app without a cloud TTS API, needs local or private speech synthesis, or asks how to integrate loudkit./choose-voiceHelp the user pick a loudkit voice by language or presentation, and let them hear it. Use when the user asks which voices or languages loudkit has, wants a voice for a given language, or wants to compare voices before generating audio./speak-locallyMake a spoken-audio WAV file from text or a text file with loudkit, an open-source engine that runs offline without a cloud API. In a coding agent with a shell, on the user's computer or in a cloud task, produce the file; without a shell, give the commands to run locally. Use when the user wants an audio file, narration or voice-over made from text or a document on their machine, not when they only want the assistant's reply read aloud.npx claudepluginhub loudreader/loudkit --plugin loudkitOther plugins' skills for the same job