When I pass someone on the bicycle path, I say YO!! rather loudly a way from them, repeat as necessary, louder each time. very loudly if necessary.
If no response a hand on their shoulder so they don't crash you when passing.
Personally I think loud music in earphones interferes with everyones safety on the bicycle, running, hiking paths