Shazam Api
Install
pip3 install ShazamAPI
Also you need to install ffmpeg and ffprobe then add it to path
Usage
from ShazamAPI import Shazam
mp3_file_content_to_recognize = open('a.mp3', 'rb').read()
shazam = Shazam(
mp3_file_content_to_recognize,
lang='en',
time_zone='Europe/Paris'
)
recognize_generator = shazam.recognizeSong()
while True:
print(next(recognize_generator)) # current offset & shazam response to recognize requests