Numenorean / ShazamAPI

Fully reverse engeenired shazam api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Credits to:

https://github.com/marin-m/SongRec

About

Fully reverse engeenired shazam api

License:MIT License


Languages

Language:Python 100.0%