Playing a Level-Up Sound

So I’m making an RPG-style game, and I set up a level-up system. It seems to work well. I have a void called ‘levelEffect’, and anything inside of it happens when the player levels. Here it is:

void levelEffect()
{
	player.maxHealth = player.maxHealth + 100;
	player.damage = player.damage + 30;
	player.health = player.maxHealth;
}

I’m new to coding and need some help. So, can anyone tell me how to play a sound? Thanks in advance.

Add an AudioSource component to the object.

Then use this method: