Changing Audio Source once player collides with an object

currently i have a game object which has a mono sound connected to it, i need the mono sound to stop playing once the player has collided with the gameobject and to start play a stereo sound? quite new to javascript any help would be appreciated :slight_smile:

this is what ive got so far

var ambience : AudioClip;
var beacon : AudioClip;

function Start () {

}

function Update () {

}

function onCollisionEnter (other : Collision) {
if (other.gameObject.tag == "signaltower") {
audio.clip = beacon;
audio.play();
}
}

You can have an audio source attached to an empty game object.

public var emptyGO_Beacon;

function onCollisionEnter (other : Collision) 
{
  if (other.gameObject.tag == "signaltower") {
  Instantiate(emptyGO_Beacon, this.transform.position , Quaternion.identity);
}

you must have the audio source property “play on awake” set as true in the inspector.