Page 1 of 1

Voice speech sync with text

Posted: Tue May 21, 2024 4:59 am
by hrohibil
Hi Tony

How do I add and sync voice effect along with the text inside a conversation?

I will be using a free AI Text to voice generator tool.

Thanks

Re: Voice speech sync with text

Posted: Tue May 21, 2024 8:24 am
by Tony Li
Hi,

What do you want to sync? The timing of the subtitle panel duration with the audio length? The timing of the typewriter with the audio length? The timing of the appearance of individual words with the audio? The animation of the mouth with the audio (aka lip sync)?

Example: Time the subtitle panel duration with the audio length:
(assuming you're naming your audio files according to entrytag)

Code: Select all

AudioWait(entrytag)
To time the typewriter to the audio length: How To: Adjust Typewriter To Audio Length

To animate the mouth, use SALSA.

Re: Voice speech sync with text

Posted: Tue May 21, 2024 9:18 am
by hrohibil
Hi Tony

Please see below post

I added a audio file into a Resources folder.
From here I dragged the file into the sequence field.

The text is displayed much faster than the audio file..


Re: Voice speech sync with text

Posted: Tue May 21, 2024 10:30 am
by Tony Li
Please see How To: Adjust Typewriter To Audio Length above.

Re: Voice speech sync with text

Posted: Tue May 21, 2024 12:19 pm
by hrohibil
Hi Tony.

Sorry for asking again.

So i created the script but how do i uses it? Should this script be attached to a gameobject or??

Re: Voice speech sync with text

Posted: Tue May 21, 2024 12:20 pm
by Tony Li
Add it to your Dialogue Manager GameObject.

Re: Voice speech sync with text

Posted: Tue May 21, 2024 12:27 pm
by hrohibil
Check..

Thank you ..

Re: Voice speech sync with text

Posted: Tue May 21, 2024 3:03 pm
by Tony Li
Glad to help!