Scenario · Indie games and NPC voice
Casting and Naming Game Voice Lines: From Script Table to Engine-Ready Audio
The delivery stage rarely fails on audio quality. It fails on filenames. With no naming rule, importing means listening to every clip and guessing.
Who this is for: programmers and technical designers wiring voice assets into Unity, Godot, Wwise or FMOD.
Related searches: game voice naming convention, character voice assignment, WAV export with subtitles, batch dialogue export.
Define the naming before you talk about batching
Batch export only works if a program can identify every file. A name like guardA_final_v3_REAL.mp3 forces any import script to give up on matching and fall back to a human.
The rule does not need to be clever, only mechanical, unique and checkable. One workable scheme:
CH03_NPC_GUARD_A_007.mp3
The fields are chapter, category, character, index. All caps, underscore separators, zero-padded index — those three conventions eliminate most sorting and matching faults.
Character names must agree in both directions
The character name in the script table and the one in the filename have to be the same string. The classic accident: the table says "Guard A" with a space, the file says GUARD_A, and nothing matches.
The fix is to fix an ASCII identity at the script stage. Add a character ID column holding NPC_GUARD_A and let export follow that column; the localised display name is for humans only.
That rule can be handed to a script as a regex, for example ^CH\d{2}_[A-Z]+_[A-Z0-9_]+_\d{3}\.(mp3|wav|srt)$. A file that fails validation goes back for re-export and never enters the engine's asset folder.
Voice assignment follows the character ID
Voice Studio's game dubbing mode assigns voices per character. Assign by character ID, not display name, so renaming "Guard A" to "Gate Sentry" does not break the mapping.
Give each character a card: character ID, voice name, rate, pitch, pause. Once those five are settled, every later line inherits them and the character stops drifting.
Subtitles: keep a fallback for alignment
Generate SRT or LRC on export. Subtitles have limited direct use inside a game, but two indirect ones: text proofreading without listening through a whole segment, and an alignment baseline when localisation starts.
If the project will ship in several languages, subtitle files are easier to deliver first — translators work against them, and audio is generated in batches afterwards.
On format: do you need WAV?
Engines generally prefer WAV: lossless, no decode cost, but large. Ebook Voice Player exports primarily to MP3 (frame concatenation, ID3 chapters), so a project that requires WAV needs a conversion pass in post.
Say this plainly so nobody expects WAV straight out of export. The conversion is trivial, but it belongs in the production plan, not in a discovery made the week before integration.
Suggested folder structure
voice/ ├── CH01/ │ ├── NPC_GUARD_A_001.mp3 │ ├── NPC_GUARD_A_001.srt │ └── ... ├── CH02/ └── system/
One folder per chapter makes updates incremental: revise a chapter's dialogue and only that folder changes, which keeps the diff readable in version control.
Art brief and clip notes
Image one: the naming rule broken into four annotated fields around CH03_NPC_GUARD_A_007.
Image two: a failed regex validation with the filename highlighted in red, captioned "no pass, no asset folder".
Footage: assets/video/scenes/s04-indie-game-voice.mp4 (source 视频/中文/50秒/Z50-08_配音工坊.mp4).
Edit note: this is technical material and does not suit an entertainment-style short. Cut a 20-second developer segment instead — six seconds of the naming diagram, six of the per-character voice panel, six of a successful import log — for developer communities and technical channels.