TheBobFoundation-Avatar_NPCs_and_Voice_Lines icon

Avatar NPCs and Voice Lines

Spawn NPCs from any avatar with a real player body. Record your own voice lines, talk to them with offline speech recognition (Whisper), 47 animations, shopkeepers & pedestrians. Works in Fusion.

Last updated 3 days ago
Total downloads 263
Total rating 2 
Categories Custom NPCs AI Generated NPC
Dependency string TheBobFoundation-Avatar_NPCs_and_Voice_Lines-3.2.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

LavaGang-MelonLoader-0.7.3 icon
LavaGang-MelonLoader

The World's First Universal Mod Loader for Unity Games compatible with both Il2Cpp and Mono

Preferred version: 0.7.3
bonelib-BoneLib-3.2.2 icon
bonelib-BoneLib

A BONELAB mod for making life easier for other mod creators.

Preferred version: 3.2.2

README

Avatar NPCs & Voice Lines

Turn any avatar into a living NPC โ€“ with your own voice.

Spawn the avatar you are wearing (or any avatar you have installed) as an NPC. Every NPC is a real player body, so it has the size and hit boxes of its avatar โ€“ a big avatar is a big NPC. Record voice lines with your microphone, and talk to your NPCs โ€“ they listen and answer.


โœจ Features

๐Ÿง Real avatar NPCs

  • Spawns a full player body wearing the avatar โ€“ no Ford underneath, no Ford voice, no Ford animations
  • Can be grabbed, punched, shot and killed (ragdolls on death), revived with one click
  • Hands never clip into the body โ€“ the mod reads each avatar's body shape
  • They look at you when you come close and turn towards you

๐Ÿช Two NPC types

Type What it does
Shopkeeper Stays at its spot, waves when you come over, beckons you closer, nods while talking, looks around when nobody is there
Pedestrian Walks through the map, prefers sidewalks over roads, stops and looks around, visits your Wander Points (e.g. shop doors), waves at you in passing, runs away when attacked

Point a gun at them and they put their hands up and slowly back away.

๐ŸŽ™๏ธ Your own voice lines

Record real voice lines with your microphone, right inside the BoneMenu. Every avatar gets its own folder.

Category Plays when
Greeting You walk up to it or touch it (once per NPC)
SmallTalk Now and then while you are close โ€“ NPCs standing together even talk to each other
Fear You aim a gun at it
Pain / Hurt Light hits / big hits and gunshots
Death It dies
  • Random lines, never the same one twice in a row
  • Lip sync (if the avatar has a jaw bone)
  • Share voices: let "Strong" use the recordings of "Heavy", or set a Default Voice for every avatar without its own lines
  • You can also drop your own .wav files into the folders

๐Ÿ—ฃ๏ธ Talk to your NPCs

Look at an NPC and just talk. The mod uses Whisper (whisper.cpp) โ€“ one of the best speech recognitions there is โ€“ running offline on your PC. Whole sentences work; it finds the meaning inside them.

19 topics, each with its own animation and its own answers that you record: Hello ยท How are you ยท Insult ยท Sad ยท Goodbye ยท Thanks ยท Compliment ยท Joke ยท Name ยท Sorry ยท Order ยท Price ยท Help ยท Dance ยท Love ยท Hungry ยท Hands up ยท Follow me ยท Stay here

Touch an NPC and it stops, looks at you and listens.

๐Ÿ’ƒ 47 idle animations

Stretching, scratching its head, checking its watch, crossing arms, yawning, dancing, salsa, air guitar, boxing, phone calls, jumping jacks, thinking, cheering, flexing, sneezing โ€ฆ one every 1.5โ€“2.5 minutes, never repeating right away.

๐ŸŒ Fusion multiplayer

Works automatically when every player has this mod:

  • Everybody sees the same NPCs (pose, walking, animations, death)
  • Other players can talk to, touch and hit your NPCs โ€“ your NPC answers for everyone
  • Voice lines your friends don't have are sent to them automatically
  • Players without the mod are not affected

๐Ÿ’พ More

  • Save the NPCs of a level and auto-spawn them when the level loads โ€“ build your own living town
  • Bring all NPCs to you, revive / kill / remove all
  • Lots of settings: talk distance, pause between lines, small talk timing, toughness, max NPCs and more

๐Ÿš€ Getting started

  1. Open the BoneMenu โ†’ NPC
  2. Pick an NPC Type and press Spawn NPC
  3. Voice Lines โ†’ Current Avatar โ†’ a category โ†’ Add Voice Line (Record) โ†’ speak โ†’ Stop & Save Recording

Speech recognition (one-time setup)

NPC โ†’ Voice Commands โ†’ Download Speech Engine. This downloads whisper.cpp from GitHub and a speech model from HuggingFace (~200 MB for Best, ~70 MB for Fast) into UserData/NPCVoiceLines/_Whisper. Nothing is downloaded until you press the button. Then choose your headset microphone under Mic.

German and English are supported. You can add your own trigger words in UserData/NPCVoiceLines/_SpeechPhrases_German.txt / _English.txt.


๐Ÿ“ Files

All recordings: BONELAB/UserData/NPCVoiceLines/<Avatar>/<Category>/

โš ๏ธ Good to know

  • Each NPC is a full player body โ€“ more than ~5 NPCs can make the game laggy (limit in Settings)
  • Walking uses the level's NavMesh; levels without one have limited walking
  • Whisper needs a few seconds per sentence depending on your PC (Fast quality is quicker)
  • In Fusion every player needs the same version of this mod, and the avatar installed

๐Ÿ™ Credits

  • Player body setup adapted from LabFusion by Lakatrazz (MIT License)
  • Speech recognition: whisper.cpp by Georgi Gerganov & contributors (MIT License), OpenAI Whisper models
  • Built with BoneLib and MelonLoader