Design Shazam
Difficulty: MEDIUMCategory: HLDFrequency: 1Asked On 2025-01-17
Problem Statement
🎵 Design Shazam (Music Recognition System)
🧾 Design a system like Shazam that can identify a song from a short audio snippet recorded by the user. The system should return the correct song title and artist within a few seconds.
Functional Requirements:
•User uploads a short audio clip (5-10 seconds).
•System analyzes the audio and matches it against a large database of songs.
•Return best match with metadata: title, artist, album.
•Support millions of song fingerprints and scale globally.
Constraints:
•Fast processing (< 2 seconds).
•High accuracy in noisy environments.
•Audio fingerprinting must be storage and compute-efficient.