The first step to make Brad say something new is adding the line to the plist.
By default, the Smart Body sequence files for the VH Toolkit include references to two voices, a prerecorded voice and a Text to Speech voice.
From \trunk\data\sbm-toolkit\scripts\init-unity-basiclevel-brad.seq
Line 8
An audio path is set in Smart Body:
Panel |
---|
0 path audio sounds |
Line 35
The voices are set:
Panel |
---|
1 set character brad voice audiofile . |
Brad will search for a prerecorded sound file in the path defined by the path audio
command above, then roll over to the TTS voice using the TTS relay. The sound file is sought by name, based on the External ID specified for the line in the plist.
Sound files are stored in /data/sounds by default. Brad will look there first for a file to playback before using Text to Speech. Sound files used in the VHTK are 44.1khz, 16bit, mono PCM WAV files. Other sample rates and bit depths will work, as well as other formats, but not consistently across the renderers shipped with the Toolkit.
To have Brad speak your recorded line, simply add a file of the type described to the sound path with a file name that matches the External ID field you specified in the plist. For example, to have Brad speak a line with the External ID "test_utterance", there should be a file test_utterance.wav in /data/sounds.
To get simple lip synching (just opening and closing the mouth):
If you are using prerecorded speech, you need to place the audio file in the correct folder.
When using Unity, the audio files are kept in \Assets\StreamingAssets\Sounds under each Unity project. Any audio file that Unity can playback can be used. The file name needs to match the External ID used in NPCEditor (see above)
If the audio file cannot be found, the system will try to generate the audio using TTS.
To generate lip-syncing for the audio file:
See VisemeSchedulerSphinx4 for more details on this tool.
To quickly get started in generating dialog and behavior for new characters, please see the documentation on the VHBuilder and Character Customizer tools.