/npctalk:voice-referencesfrom npctalk
Creates reference clips for zero-shot voice cloning (ElevenLabs, Fish Audio, MiniMax) from source recordings. Splits audio into clean 6-11s segments, transcribes them, filters noise/screams, and builds neutral, angry, and drunk mood clips for upload to a voice server.
Ships in npctalk. 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.
A zero-shot cloner copies whatever is in the reference clip: the voice, but also the room, the music, the mic and the mood. Most "the clone sounds wrong" problems are reference problems.
Clone only voices the user has the rights to: their own, an actor who agreed, a licensed or generated voice.
A game's characters are voiced by real people. For a private single-player experiment the user may decide to
use the game's own audio; it still never goes into a repo, a release or a public video without the rights.
npctalk check fails on audio files and .lab transcripts.
angry mood folder, slurring in drunk.server/finetune/prepare_dataset.py does).npctalk voice make --name Narrator --audio narrator.wav # neutral voice
npctalk voice make --name Narrator --audio narrator_angry.wav --mood angry # lines tagged [angry]
npctalk voice upload voices/Narrator # -> the server's /voices/Narrator
What voice make does (the same steps built the GTA V example's 13 voices):
FAL_KEY).ref_0..2 (the best three) and clone.wav: the best candidates joined up to ~25 s. Every clip has a
.lab transcript next to it; the cloner needs the exact words.voices/Narrator/clone.wav + clone.lab what the server clones from by default ("Narrator/clone")
voices/Narrator/ref_0..2.wav + .lab single clips, for engines that want a short one
voices/Narrator/angry/ref_0..1.wav + .lab used when a line starts with [angry]
voices_work/Narrator/cand_*.wav + .lab every candidate, to listen to (never commit)
On Drama 3, the ~30 s clone.wav gave 0.680 voice match on Lamar's test lines; each of his single 6-10 s clips
gave 0.610-0.630. Passing all four clips as references at once was no better than clone.wav alone. S2 Pro
preferred a single clean clip (0.707 vs 0.680), so test both if you switch models (skill
voice-likeness-eval).
clone.wav. Anything in it (a laugh, a car, a second voice) shows up in every line..lab. A wrong transcript makes the cloner mumble or skip words; fix the text by hand.npctalk say "Testing, one two." --voice Narrator/clone --out t.wav.The server reads /voices in its Modal volume when it starts, so restart it after an upload
(modal app stop npcvoice-drama). A game refers to a voice by folder and clip name (Narrator/clone); mood
folders are picked by the line's leading tag. Until a restart, a game can send the clip by URL with its
transcript (reference_audio_url + reference_text), at ~9 s extra the first time.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
voice-cloning, audio-processing, tts, reference-clips, zero-shot
npx claudepluginhub christos-antono/npctalk --plugin npctalk8 skills in this plugin
/fish-voice-serverHost Fish Audio's open-weights voice models (Drama 3 and S2 Pro) on a serverless GPU (Modal, or fal) behind one small HTTP API a game can call. POST /speak takes text and a voice and streams 16-bit PCM back with first audio in ~0.4 s, cloned zero-shot from a reference clip, with [tags] like [angry] or [laughing] for delivery. Covers deploying with SGLang-Omni, the API, preparing voices at startup, keep-warm and cold starts, scaling to zero and cost, sampling settings that measurably help likeness, picking the best of several takes for pre-rendered lines, an optional S2 Pro fine-tune, and the setup gotchas. Use when a game, mod or app needs realtime cloned character voices, the user mentions Fish Audio, Fish Speech, S2 Pro, Drama 3 or a self-hosted TTS server, or a voice server is slow, cold or failing./make-npcs-talkMake NPCs in a game talk back. The player speaks or types, the NPC answers in character, in a cloned voice, about 1-2 seconds later, and can act on what was said. Covers the whole loop and the order to build it in (who is being talked to, what the scene is, speech-to-text, an LLM in character, Fish Audio voices on a GPU, streamed playback from the NPC, subtitles, mouth movement, actions), the four hooks a game has to provide, latency budgets, costs, testing in the real game, and the rules (single-player, voices you have the rights to, nothing of the game shipped). Use when the user wants NPCs, characters, villagers, companions or enemies in any game to hold conversations, react to the player's voice, or be voiced by Fish Audio (S2 Pro or Drama 3) and an LLM./npc-actionsMake NPCs physically react to a conversation and follow spoken orders. Pick an action (punch, slap, hug, kneel and beg, flee, flip off, square up, nothing...) from what the player said and what the NPC replied, with TypeSafe's Jev returning a typed choice and a probability in ~0.1 s, per-action thresholds, a repeat cooldown, orders ("get on your knees") that override mood and make the LLM rewrite the line, and mapping action names onto the game's animations with checks at load. Use when NPCs should act out what they say, obey commands, or when actions picked by an LLM are too random, too timid or too frequent./npc-dialogueWrite what NPCs say with an LLM so they sound like themselves and like the game. Covers persona files, a fresh random sample of the character's own lines in every prompt, scene facts (place, time, weather, what the player holds or drives, danger), per-NPC conversation history, short spoken output with one delivery tag for the voice model, doing what the player tells them, fast models with reasoning off, and cleaning the output (refusals, name prefixes, length, slur rules). Use when NPC replies sound generic, robotic, too long, preachy or out of character, refuse, break the game's tone, or come back too slowly, or when adding a new character's persona./npc-showcase-clipsRecord short clips of NPC conversations that look like real gameplay, ready to post. Covers scripted exchanges at chosen places and times, the gameplay camera held still behind the player, both lines rendered before the clip rolls so it plays back to back, the game's own HUD and subtitles with nothing of the mod on screen, timeline markers for cutting, screen and audio sync, 5-10 s cuts in 16:9 (and 9:16), pinning lines to re-voice an approved take, and re-taking clips that run long. Use when the user wants demo videos, clips or a montage of talking NPCs./voice-inputLet the player talk to NPCs out loud. Covers an always-on open mic with voice activity detection against the room's noise floor, push-to-talk and typing as fallbacks, ignoring the NPC's own voice coming out of the speakers, dropping coughs, clicks and filler words, fast speech-to-text (fal's Nemotron ASR, ~0.4 s, audio sent inline), and routing what was heard to the right NPC. Use when building or debugging mic input for a game, when the open mic triggers on noise or misses speech, when NPCs answer things the player didn't say, or when "nobody answers".Other plugins' skills for the same job