How can I change an AudioClip by scripting or fill an AudioClip Array?

Hey Guys,

I wanna play some random “player jumps”-sounds.
But there is a certain information missing.
What is the content of an AudioClip? How can I get the filepath from the audioclip?
Or in this case, how must I fill the AudioClip Array.

private GameObject character;
public AudioClip[] jumpArray;
void Start() {
		character = GameObject.FindWithTag("Heavy");
		jumpArray = new AudioClip[7];
		jumpArray[0]=XXX;
	}

And then how is a specific file played?
Like that?:

void update() {
     AudioClip=jumpArray[1];
}

Thanks for you help.

When you drop that script on a gameobject (assuming it works) the array will show in the object’s properties, you can drop your imported sound files into the array. To play the audio click you should look at the Audio references in unity documentation. In Javascript its Play.OneShot or something but I would look that up in the docs.