change volume of PlayOneShot

hi currently i have an array of audioClips all playing at PlayOneShot every few seconds, but i cant work out how to change their volume. their not going through any audioSource, should i make them go through an audioSource component to change their volume.

or how would i change the volume just before its played with out the component

PlayOneShot does go through an audioSource, thus you use:

AudioSource.PlayOneShot(); Without an audioSource it will not play.

You can either adjust the volume of the audioSource you are playing the sound from.

Or use:

audio.PlayOneShot(audioClip, volume);

Have a look at the docs.