Page 1 of 1

AudioWait() slows down my voice-over audio

Posted: Mon Jun 27, 2022 2:19 am
by Newbie0
Hi

I'm using sequences to add voice-over audio to some of the lines in my dialogue, I made a resources folder where I put my audio in then dragged it to the sequence field of the corresponding node with the command AudioWait()
but the audio comes out slowed down to the degree that it is distorted!

How can I solve this?

Re: AudioWait() slows down my voice-over audio

Posted: Mon Jun 27, 2022 8:24 am
by Tony Li
Hi,

Is your game adjusting timescale during conversations? Maybe timescale is distorting audio.

Or maybe it's an issue with the Audio Source. When you drag an audio file, it creates an AudioWait() command that plays on the speaker's Audio Source, creating the Audio Source if it doesn't exist. If that Audio Source already exists, check its configuration. If you want to play the audio on a different GameObject, add the GameObject name to the AudioWait() command, such as:

Code: Select all

AudioWait(myAudioClip, Some GameObject Name)
If you make a build of your game, is the audio distorted in the build? If not, it might be an editor issue. You may be able to resolve it by changing the import settings of your audio file. The Knights of Unity did a good writeup of audio import settings here.