Put the relevant sprites in a family and use a family instance variable, not the name of the object. So if clicking it would play song1, then variable on that object is set to song1, and if an object would play song2 then set the variable of that object to song2.
Then in one event you can say, on family clicked : play audio (by name) ""&family.variable