Given the response, I probably should have clarified that this was meant more for camping not hiking per se. I wouldn't use it walking an actual trail with other hikers as that would be rude (and also what the headphones are for anyway) .
If predators are bears then the U.S. National Parks Service cautions against this method, at least in Yellowstone. They claim it’s ineffective as they aren’t loud enough.
Are you aware that other hikers hate you for this? I suppose you don’t care.