Text appears delayed to Audio

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
BoringSuburbanDad
Posts: 4
Joined: Mon Nov 04, 2024 3:31 pm

Text appears delayed to Audio

Post by BoringSuburbanDad »

Hello and thanks again for the great Dialogue System!

I have the following problem:
- I have a Dialogue Text "ABC"
- In the same node, I have a Sequence "AudioWait(MySoundfile);"

It works nearly as expected:
- The Soundfile is played
- The text is shown

But:
There is always a delay of about a second before the text is actually shown on the screen.
1. The Audio starts, but no text is shown.
2. The Subtitle Text (TMP) gets activated, but the Text Input field is empty.
3. Then, after a short amount of time, the Text Input field gets filled with the correct text ("ABC"), and the text is shown on the screen.

This delay is very distracting.
Do you know what I might do wrong?
User avatar
Tony Li
Posts: 23251
Joined: Thu Jul 18, 2013 1:27 pm

Re: Text appears delayed to Audio

Post by Tony Li »

Hi,

Are you using Addressables? If so, the delay may be because Unity needs to load the audio file from the Addressables system first before it can play it.

If that's not the case, then check the beginning of your audio file. Maybe it starts with some amount of silence before it actually gets to the sound.
Post Reply