Skip to content
Minute Campus.

How real companies do itLesson 071 min

How does Shazam name a song in seconds?

Shazam does not compare raw sound. It turns a recording into a picture of sound, keeps only the loudest points and discards the rest, leaving a constellation map. Nearby points are paired into numbers, which are looked up in a database built the same way. Many matches at one moment in one track identify the song.

Remember

Shazam matches the pattern of a song's loudest points, not its sound.

Sources

Checked at the source.

Every claim in the lesson was checked against these before it was recorded.

  1. 1An Industrial-Strength Audio Search AlgorithmAvery Li-Chun Wang (Shazam Entertainment) · ISMIR 2003 · read 4 Oct 2026Describes spectrogram peaks as a constellation map, hashed pairs of points, and matching by shared time offset.

Transcript

The lesson, word for word.

Read it at your own pace, or search the page for a term.

How does Shazam name a song in seconds? It does not compare the sound itself. It compares something more like a star map. Here is how, from the paper Avery Wang of Shazam published in two thousand and three. First, the recording becomes a picture of sound: time across, pitch up the side. Then it keeps only the loudest points and throws the rest away. What is left looks like a sky full of dots. Wang called it a constellation map. Loud points survive noise, so the map of the clean song and the map of your noisy clip still share dots. Next, it pairs up nearby dots and turns each pair into a number: two pitches, and the time between them. Those numbers are looked up in a database built the same way from every song. If many of them line up at one moment in one track, that is your song.

Questions? Comment on the lesson on YouTube

New lessons every day.

Follow Minute Campus where you already scroll.