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.
Just use your Google assistant, it’s pretty accurate and it even recognize humming. The keyword is “What’s this song or What song is this/Recognize this song/etc”
Google Assistant doesn’t meet the OP’s requirements: it’s not open source.
While i find Google Assistant better at finding music, it isn’t open source and thus not what OP is looking for.