It seems it’s impossible to wake Siri up using the “Hey Siri” functionality while playing music (using either internal speakers and headphones.)
Is there a way to solve this issue?
As far as I'm aware Hey Siri isn't actually supported while music is playing.
People on Reddit have reported the same issue about a year ago - https://www.reddit.com/r/iphone/comments/7ssnz7/hey_siri_not_working_when_music_is_playing/
On my iPhone SE it works while music is playing.
Try going to Settings -> General -> Software Update and updating your iOS.
You can also try to be nearer the microphone if the music is playing louder.
Also be aware that Hey Siri only works on battery on the iPhone 6S and later so if ypir phone is older than that you need to have it plugged in.
It's also worth checking Siri is on by holding the Home Button.
Tested using iOS 12.1.1
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?