BHOZ4 TOOLS

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.

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).

  1. Install SoX and open a terminal in the folder of takes for one language.
  2. In a Bash shell, run:
    for f in *.wav; do echo "$f,$(soxi -D "$f")"; done > durations.csv
  3. Open durations.csv in a spreadsheet next to your cue list with its time budgets.
  4. Look up each cue's file by name, subtract the budget from the length, and filter for lines over or under your tolerance.
  5. 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