Find dubbed voice lines that run too long
The localized voice files are back from the studio. Some lines will not fit the time the game gives them, and some files are missing or misnamed. Here is how to find them before they reach the build.
Why it happens
Each cue in a game has a time budget: the length of an animation, a cutscene shot or a gap in the action. A translated line can run longer or shorter than the original, and the actor cannot always fit it.
- Long takes: the line gets cut off, overlaps the next one, or holds up the scene.
- Short takes: the line ends early and leaves dead air.
- File problems: a cue has no file, has two takes with the same name, or a file matches no cue at all.
With hundreds of lines per language, nobody finds these by listening.
Fix 1, free: list every file length and compare in a spreadsheet
SoX is a command-line sound tool released under the GPL and LGPL, and free to download. Its soxi command "Displays information from the header of a given audio file or files", and its -D option will "Show duration in seconds (0 if unavailable)" (soxi manual page).
- Install SoX and open a terminal in the folder of takes for one language.
- In a Bash shell, run:
for f in *.wav; do echo "$f,$(soxi -D "$f")"; done > durations.csv - Open durations.csv in a spreadsheet next to your cue list with its time budgets.
- Look up each cue's file by name, subtract the budget from the length, and filter for lines over or under your tolerance.
- Filter for cues with no file, and files with no cue.
This works for any size of project. The spreadsheet lookups take some setting up, and you redo the steps for every new batch of takes.
The length comes from the file header, so it is the whole file, silence included. If the studio leaves long silence at the start or end, trim it first or allow for it.
Fix 2, paid: check the takes against the cue list in one pass
I make Dub Timing Check ($15). It imports cue IDs and duration budgets from a CSV. It matches WAV files to cues by filename. It flags long, short, missing, duplicate and unmatched takes. It exports a CSV for the pickup list. You unzip it and open index.html in desktop Chrome. The download includes a worked sample and a quick-start guide.
It reads PCM or IEEE-float WAV files only. It matches by filename, so your file names must carry the cue IDs. It measures the full file duration, including silence. It analyzes one locale at a time. There is no free demo.
Which one to use
- A one-off check, or files that are not WAV: Fix 1.
- Repeated batches of WAV takes named by cue ID, across several languages: Fix 2 gives you the pickup list without rebuilding the spreadsheet each time.