there's pretty much never going to be an automated way to get audio out of beatmaps. Osu was never meant to be an audio distribution program. osz2 was even supposed to essentially lock down the mp3s so they couldn't be extracted by normal means (preserving the integrity of the beatmap).
Right now you can replace virtually everything in the beatmap other than the osu file and it will still count toward ranked play/etc...