You’re at a coffee shop. A song comes on. It’s right on the tip of your tongue. You pull out your phone, tap a button, and it tells you what it is in a few seconds.

How does a phone listen to a few seconds of music through a noisy room and instantly match it against millions of songs?

Your first instinct might be that the phone is listening to the melody or recognizing the lyrics. It’s neither of those. What it’s actually doing is far more clever.

  • Tim@lemmy.snowgoons.ro
    link
    fedilink
    arrow-up
    1
    ·
    4 hours ago

    That’s brilliant, thank you!

    They should cover JPEG compression at some point; when I first learned how that worked (at uni nearly 40 years ago… God) I was blown away by how beautiful that algorithm is.

  • DreadPirateShawn@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    5
    ·
    16 hours ago

    I’ve also noticed this is why Shazaam is shit even at a concert by the original band.

    The link alludes to this when it talks about shazaam not handling us singing a song very well, but it strikes me as most stark when it’s even the original artist.

    • Appoxo@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 hours ago

      I find that Google is better at identifying the song while shazam always fails at it.
      Especially at more niche songs.