If someone doesn’t know what Shazam is, it listens to music playing on the radio or TV and identifies it and helps you find the name/artist.
I was wondering if there open source equivalent, I tried searching google and AlternativeTo but only found Linux desktop apps.
Uninformed copyright law speculation
IANAL, but a hash of music is not the music itself, something that can be converted to music, or in any way protected by copyright AFAIK. That being said, I think the rest of your comment is correct.
Edit: fixed bad spoiler/cw syntax