how to access audio source on another gameobject unity code example
Example: access audio source from gameobject unity
AudioSource source1 = GameObject.FindGameObjectWithTag("GameObject1").GetComponent<AudioSource>();
GetComponent<AudioSource>().clip = source1.clip;