Voice speech sync with text

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hrohibil
Posts: 358
Joined: Thu Nov 04, 2021 12:50 pm

Voice speech sync with text

Post 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
User avatar
Tony Li
Posts: 20990
Joined: Thu Jul 18, 2013 1:27 pm

Re: Voice speech sync with text

Post 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.
hrohibil
Posts: 358
Joined: Thu Nov 04, 2021 12:50 pm

Re: Voice speech sync with text

Post 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..

User avatar
Tony Li
Posts: 20990
Joined: Thu Jul 18, 2013 1:27 pm

Re: Voice speech sync with text

Post by Tony Li »

Please see How To: Adjust Typewriter To Audio Length above.
hrohibil
Posts: 358
Joined: Thu Nov 04, 2021 12:50 pm

Re: Voice speech sync with text

Post 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??
User avatar
Tony Li
Posts: 20990
Joined: Thu Jul 18, 2013 1:27 pm

Re: Voice speech sync with text

Post by Tony Li »

Add it to your Dialogue Manager GameObject.
hrohibil
Posts: 358
Joined: Thu Nov 04, 2021 12:50 pm

Re: Voice speech sync with text

Post by hrohibil »

Check..

Thank you ..
User avatar
Tony Li
Posts: 20990
Joined: Thu Jul 18, 2013 1:27 pm

Re: Voice speech sync with text

Post by Tony Li »

Glad to help!
Post Reply