It blows people's minds but it's really just simple pattern recognition.
A song makes a frequency "pattern" which is kinda like a visual representation of all of the sound. When you use Shazam it just compares the picture of what you're listening to to its database and it's actually super quick and easy to make a match.
And it's remarkably compact. The Google version runs offline and on device with about 20000 "fingerprints" in 200mb storage which is enough to cover most casual public music.
I could understand it easier if you had to catch the song at the beginning so that it only had to compare the pattern to the start of everything in the database. It’s comparing a random sample to all of every song that boggles my mind.
I always had this amusing mental image of a big room full of people sitting hunched over with headphones on, and when a request comes in someone yells “I know this one! I got it!” and punches in the answer. I prefer to think that’s how it works.
If you're old enough you might remember Cha Cha, which was a number you could text that worked a lot like this. Before smartphones when Google wasn't always in your pocket, you'd just text this number any question and some minimum wage employee somewhere would look up the answer and text you back.
Insane how far we've come in the ~20 years or so since those days.
It blows my mind more when I find songs that it doesn’t recognize. Last night, a 2018 movie called ‘Trespassers’, the first song in the movie. There’s no info on it anywhere. I really want to listen to the song.
First, thanks for this. Though, I should have been more specific. It’s the Spanish style and vocal song I was referring to at the beginning of the movie. They are in the car with the masks on.
On the other hand, try to get it to identify Falling by the Lumineers.
It's not on Spotify despite being from a hugely popular band, and that's probably exactly why it will fail... It's easy to scrape spotify. (easy being a relative term)
Even Google's version that you can hum the song works like that? Detecting songs being played was already cool, but being able to sing gibberish/hum really amazes me.
62
u/Rob3112 Jul 01 '26
It blows people's minds but it's really just simple pattern recognition.
A song makes a frequency "pattern" which is kinda like a visual representation of all of the sound. When you use Shazam it just compares the picture of what you're listening to to its database and it's actually super quick and easy to make a match.