ACRCloud
APIAudio fingerprinting API that identifies songs, covers and hummed tunes
- Erişim
- Access key and secret, HMAC-signed
Hakkında
Recognition service that matches short clips against the ACRCloud Music database or your own content, with cover-song and humming detection, broadcast monitoring and offline mobile SDKs. Requests are HMAC-signed with a project key and secret. Prices are shown only after login.
Neler yapabilirsin
- Identify a song from a 10-second microphone or file clip in a mobile app
- Recognize hummed melodies, cover versions and live performances of a song
- Monitor radio and TV streams for music, ads or your own uploaded content
Başlarken
- Create an Audio & Video Recognition project with the ACRCloud Music bucket
- Copy the project's host, access_key and access_secret
- Sign each POST /v1/identify with HMAC-SHA1, or use an SDK that does it
Örnek kod
import base64, hashlib, hmac, os, sys, time
import requests
host, key, secret = os.environ["ACR_HOST"], os.environ["ACR_KEY"], os.environ["ACR_SECRET"]
timestamp = str(time.time())
to_sign = "\n".join(["POST", "/v1/identify", key, "audio", "1", timestamp])
signature = base64.b64encode(
hmac.new(secret.encode("ascii"), to_sign.encode("ascii"), digestmod=hashlib.sha1).digest()
).decode("ascii")
# A clip of 15 seconds or less works best
r = requests.post(
f"https://{host}/v1/identify",
files=[("sample", ("clip.mp3", open(sys.argv[1], "rb"), "audio/mpeg"))],
data={"access_key": key, "sample_bytes": os.path.getsize(sys.argv[1]), "timestamp": timestamp,
"signature": signature, "data_type": "audio", "signature_version": "1"},
)
print(r.text)Ayrıntılar
- Barındırma
- Hazır hizmet (bulut)
- Kullanılabildiği yerler
- Tüm dünya
- Resmi SDK'lar
- Python, PHP, Go, Java, C#
- MCP sunucusu
- Yok