Authorization notice. NPC Talk is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Credentials. Modal, fal, Cerebras and TypeSafe keys must come from environment variables, never from files in the repo.
Who it is forA solo modder with a single-player game they own, who wants one NPC to answer typed or spoken questions with a voice.
The problemWiring an LLM, a text-to-speech server and game hooks together by hand takes many separate setups that are easy to get wrong.
The outcomeOne NPC in the game replies to the player in character, in a cloned voice, roughly a second after the player speaks.
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
- Install the skills and CLI in your agent:
uv tool install git+https://github.com/christos-antono/NPCTalk(or clone the repo and start your agent inside it). - Set up Modal with
modal setup, then put the value of NPCVOICE_TOKEN into the npcvoice-auth secret. - Check that the voice server is up with
npctalk health, then speak a test line withnpctalk say. - Ask the make-npcs-talk skill to build the four game hooks (who is talked to, scene facts, voice at the NPC, actions) for one NPC only.
- Test in the game, and log each step's timing as the skill's verification step asks.
Prompt for your agent
Using the NPCTalk repo at https://github.com/christos-antono/NPCTalk, start the make-npcs-talk skill and make the NPC <npc-name> in <game-name> answer typed questions in a voice. Expected output: a working speak loop and a WAV from `npctalk say`. Verify that `npctalk health` reports the voice server up before testing the game.
Caveat. The README says the voice server URL should stay private because its /health endpoint wakes the GPU, so keep it out of commits and shared logs.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for christos-antono/NPCTalk and "Make an NPC in your own game answer you in character"
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