I want to add pre-recorded voices to the dialogues of my Narrat game. I’m not thinking about barks or sounds per letter, but actual voicelines recorded by VA.
My current understanding is to use play sound and manually add all the voicelines at the right place each time. Is that correct?
I’m also not sure how to let the player interrupt the voiceline if they’re moving forward faster than the voiceline?
There isn’t yet a feature for voices, so yes something like that. One thing that would help would be to make a function and/or macros to simplify it, like:
voiced character pose audio sentence:
play sound $audio
talk $character $pose $sentence
stop sound $audio
main:
run voiced myCharacter idle "voice_line_01" "Some text"
Then this could be simplified a bit more with a macro, in macros.yaml:
I recommend setting the volume of your music lower than the voicelines like so, but do what feels right for your game.
Add the voiced function in your game.narrat file or equivalent:
voiced character pose audio sentence:
stop sound
play sound $audio
talk $character $pose $sentence
stop sound $audio
The first stop sound is here to stop the previous line from being spoken over the next one in case of the “continue” button being clicked faster than the voice is being read.
The very last voiceline will be read in its entirety no matter what but I didn’t have the capacity to look for a solution to that.
Add your voiced lines in your game labels where needed, for example:
main:
voiced character idle "my_voiceline" "This is me saying a voiceline!"
voiced character idle "my_second_voiceline" "And now this is me saying another voiceline!"