How to split audio from a source?

The simplest answer to my question would be to switch to spotify, but I'm not paying for another subscription so I use youtube music. I want to record one audio from youtube music, but keep the other audio separate, so that the viewers can hear youtube but not my video. is this possible?