Skip to content
Search

Shazam

lastmod 2026-04-26created 2025-04-042 edits

How on earth does Shazam work?

  • How on earth does Shazam work? | GeekNews
    • [Original] How The Heck Does Shazam Work? (An Interactive Exploration)
    • Music recognition works by turning the air vibrations picked up by a microphone into a waveform, then compressing it into a spectrogram and a small number of strong frequency peaks to create a fingerprint of the song
    • Raw waveforms change easily with volume and playback environment, making them hard to use as an identification basis; applying an FFT to each short segment to reveal the frequency structure over time is what makes stable comparison possible
    • The remaining peaks are not used as single points but grouped into anchor–target zone pairs and hashed; these combinations act as fingerprint hashes specific enough to distinguish a particular recording
    • Search uses a hash-first structure that looks up hashes directly as keys instead of comparing songs one by one, and finally checks that the time offsets of the matched hashes also line up to increase confidence
    • Server-based large-scale databases and on-device approaches differ in scale and constraints, but the core idea is to discard most information and keep only landmark peaks, so songs can be found quickly even from short, noisy clips

See also

  • Shezem-rs - Fast Rust-based audio fingerprinting system
author Zer0 sitemap