include audio with animation

how would i make it so that the audio is also triggered when the animation is? thank you

var painting : AnimationClip;
var screamsound : AudioClip;

	function OnTriggerEnter (player : Collider){
	
		if (player.tag=="Player")
		
			GameObject.Find("picture1").animation.Play("paint");
			
		
			
		}

Put it in the next line of code.
(I’m surprised you asked before trying that…)

If you wanted the audio clip to play at a specific point in the animation instead of immediately, you can use an animation event to call a function that plays the audio clip.