how to switch out music file for another using php echo

you can’t change file name. If you want to change file name dynamically try using acf for that.

https://www.advancedcustomfields.com/resources/page-link/