Add a line to the plist using NPCEditor

The first step to make Brad say something new is adding the line to the plist.

  1. Launch NPCEditor using the Launcher
  2. On the right side in the Answers column, click the "Add" button. A new blank line will be created in the list.
  3. Type the dialog you want Brad to say in the text box at the bottom.
    1. You can paste in text, but make sure it doesn't contain any special punctuation marks, such as those found in MS Word or Excel.
  4. Fill in the External ID.
    1. If using prerecorded speech, this should be the audio file name without the extension (test, not test.wav).
    2. If using TTS, this should be something unique.
  5. Fill in the other information:
    1. 'Domain' is 'General' or whatever domain you want the line to appear in.
    2. 'Type' can be blank or one of the control types.
    3. 'Speaker' should be 'Brad' or your character's name.
    4. 'Addressee' should be 'User'
    5. 'Topic' is not required, but useful for organization.
    6. 'Sound' is used to sort between prerecorded or TTS lines, set accordingly.
  6. You may test the line by double-clicking on it in the Answers list, provided the rest of the Toolkit is running.

Add a sound file

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.

Add lip synching

To generate lip-syncing for the audio file:

See VisemeSchedulerSphinx4 for more details on this tool.

 

VHBuilder and Character Customizer

To quickly get started in generating dialog and behavior for new characters, please see the documentation on the VHBuilder and Character Customizer tools.