ShazamKit

Recognize music, or your own audio, from a few seconds of sound.

Introduced
2021
WWDC21
Kind
Framework
Runs on
Get it from
iOS
15.0+
iPadOS
15.0+
Mac Catalyst
15.0+
macOS
12.0+
tvOS
15.0+
visionOS
1.0+
watchOS
8.0+

Overview

ShazamKit matches audio against Shazam's catalog to identify songs, or against custom catalogs you build from your own content, so an app can react to what's playing on TV or in a video.

Matches include where in the track the audio was heard, and the audio itself never leaves the device.

Song recognition

Identify music from Shazam's catalog.

Custom catalogs

Make your own audio recognizable.

Sync to playback

Know exactly where in the audio a match happened.

Private

Audio stays on the device.

Listen.swift
import ShazamKit let session = SHManagedSession() let result = await session.result() if case .match(let match) = result, let item = match.mediaItems.first { print(item.title ?? "", item.artist ?? "") }

History

How it grew up.

2021

Introduced

Song recognition and custom catalogs.

2022

Custom catalogs at scale

Tools to build large custom catalogs.

2023

Managed sessions

A simpler API for listening and matching.