That is why I prefer the home gym.
The gym I go to, plays good music. Though I keep sound-blockers on, I can make it out and remove them when needed (when I want to listen).
Dio, Maiden, Molly Hatchet, Rush, April Wine, Bad Co, etc.
The owner and I grew up together and started training together as 12 years olds back in 1978, so we like the same music, used to go to concerts together in HS, etc.