Authorization notice. NPC Talk is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Voice cloning. Cloning a real person's voice without their consent or the rights to the recording is what this use case must avoid, and the README says voice clips must never be committed or published.
Who it is forA modder making a character who needs a consistent cloned voice, using audio they have the rights to.
The problemA cloned voice can sound thin or off, and it is hard to tell whether the reference clip or the model is at fault.
The outcomeA voice folder with reference clips and mood clips on the server, and a likeness measurement that shows whether a setting helped.
What you need first
- A game you own, ideally single-player (the README says never inject into online games with anti-cheat)
- Git, Python 3.10+, uv and ffmpeg
- A Modal account for the GPU voice server, with the NPCVOICE_TOKEN environment variable set
- A fal key (FAL_KEY) for speech-to-text and the MCP server
- A Cerebras key (CEREBRAS_API_KEY) for the NPC's lines
- Optional: a TypeSafe key (TYPESAFE_API_KEY) for actions and spoken orders
- Windows and the .NET SDK (8+) only if you follow the GTA V example
Steps
- Confirm you have the rights to the recording you plan to clone from.
- Make the reference set from your recording with
npctalk voice make. - Send the voice folder to the server with
npctalk voice upload. - Speak a test line in that voice with
npctalk sayand listen to the WAV. - Run
npctalk checkbefore you share anything, so no voice clips or keys go out with the repo.
Prompt for your agent
In the NPCTalk repo at https://github.com/christos-antono/NPCTalk, use the voice-references and voice-likeness-eval skills to build a voice from <recording-path> that you have rights to. Expected output: a voices/<name> folder uploaded to the server and a WAV from `npctalk say`. Verify with `npctalk check` that no audio, transcripts or keys are staged for commit.
Caveat. The README's measured likeness numbers come from one character and ten test lines, so expect different results with your own voice and clips.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for christos-antono/NPCTalk and "Clone a character voice from recordings you have rights to"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer