1
\$\begingroup\$

I am working on a game where the exact dialogue to be spoken out depends on context. The most common use case is for scoring - The game keeps player score and I want the game to tell the player her current score using audio. For example, audio can be - "You've killed 10 enemies", or "You're score just crossed 100!". In both these sentences, the numbers 10 and 100 depend on the current game context.

What I would want to do is record the sentence "You've killed .... enemies", and then also record all the numbers separately, and then form a complete sentence when needed. Are there any solutions which can do this in a way that the dialogue sounds fairly natural?

\$\endgroup\$
2
  • \$\begingroup\$ I have played games which tried this and usually the results were quite bad. You can usually notice that timing, volume and inflection are off at the cut-points... but maybe I did play one which pulled that off and I didn't notice because they did it so well :) \$\endgroup\$
    – Philipp
    Apr 14, 2017 at 1:27
  • \$\begingroup\$ @Philipp Do you remember the names of any of those games, where it didn't work? \$\endgroup\$
    – Aman
    Apr 15, 2017 at 1:55

1 Answer 1

1
\$\begingroup\$

There is no technical solution to this. It is a matter of the dialog recording director and editing, and it is hard work. If you've ridden modern trains in Europe, you will find that they do this (with varying levels of success) for the announcements at stations and in trains.

The short answer is: You have to get the voice actor to read all numbers at the same pitch, ideally during the same recording session, and at the right pitch to fit into the flow of the sentence.

You then have to edit all recordings so they have the same amount of silence at the start and end, so that when plugged into the sentence there are no unnatural pauses around the insertion.

Given the people tend to bind words together ( e.g. You'd likely say "You hafive hundred points" and not actually fully enunciate the end of "have" and then pause), it would likely still sound a bit unnatural.

If you also take into account how much more work it is for a voice actor to repeatedly hit the same pitch (and energy level) and how much more likely they will have to re-do the line, and how much time it takes to edit the recorded bits together so they sound good, plus develop engine support for loading several phrase fragments and playing them back gaplessly, and taking into account how cheap disk space and bandwidth are these days, and how well voice audio compresses, it usually makes more sense to record the entire sentence repeatedly than try to cut it together from multiple parts.

This also means the voice actor can play with the voice lines a bit, e.g. Do special versions for higher numbers, and it will sound more human if the sentence melody, speed etc. vary a bit as the numbers rise.

In fact, many AAA games include several versions of the same phrase, or even slightly different phrasing to provide more variety.

\$\endgroup\$
1
  • \$\begingroup\$ Thanks for the insights. I was not attempting to reduce the size of audio assets, but to make it less work for the voice actor. It looks like trying to cut and paste dialogues is an attempt on over-optimization that may not pay off. \$\endgroup\$
    – Aman
    Apr 15, 2017 at 1:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .