I like to write with music blasting in my head because the earbuds I use block out distracting external sounds in addition to delivering audio inspiration directly to my skull.
A few things to note:
1) new songs change the mood...I might have one on repeat a while
2) lyrics can be distracting, but instrumental is good, or Japanese lyrics
3) if it's too loud, I get distracted by it so that I can't hear my own writing, which is why I often go for just instrumental or have to turn it down for a bit
4) readers can't hear my audio accompaniment, so the words I write had better stand on their own