GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AudDMusic/audd-openapi: OpenAPI 3.1 spec for the AudD music recognition API + canonical fixtures

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
fixtures
fixtures
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
openapi.yaml
openapi.yaml
 
 
redocly.yaml
redocly.yaml
 
 
requirements-dev.txt
requirements-dev.txt
 
 

Repository files navigation

audd-openapi

CI

The canonical OpenAPI 3.1 specification for the AudD music recognition API.

This repository is the source of truth that all official AudD SDKs build their typed models against.

File Purpose
openapi.yaml OpenAPI 3.1 spec covering every public AudD endpoint
fixtures/ Real captured API responses, PII scrubbed — used by every SDK's contract tests
tests/validate.py Validates each fixture against its schema in openapi.yaml
tests/capture_fixtures.py Re-capture fixtures from the live API (requires an api_token)

What's covered

  • Standard recognition — POST/GET https://api.audd.io/
  • Enterprise recognition — POST https://enterprise.audd.io/ (hours- to days-long files)
  • Stream management — setCallbackUrl, getCallbackUrl, addStream, getStreams, setStreamUrl, deleteStream
  • Longpoll — GET /longpoll/
  • Custom catalog upload — POST /upload/ (special access required)

The WebSocket recognition variant is intentionally not modeled — AudD recommends the HTTP endpoints for all use cases.

Validate locally

python -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
python tests/validate.py

To re-capture fixtures from the live API:

AUDD_TEST_TOKEN_STD=... AUDD_TEST_TOKEN_ENTERPRISE=... \
    python tests/capture_fixtures.py
python tests/scrub_fixtures.py

Contract drift detection

When this repo lands a change to openapi.yaml or fixtures/, a workflow fires repository_dispatch events at the nine SDK repos that have a separate contract workflow (audd-python, audd-node, audd-go, audd-rust, audd-php, audd-swift, audd-kotlin, audd-dotnet, audd-java) to re-run their contract tests against the new spec. Those nine SDKs also run the same contract tests on a daily cron at 06:00 UTC as a safety net.

License

MIT — see LICENSE.

Support

  • Documentation: https://docs.audd.io
  • Tokens: https://dashboard.audd.io
  • Email: [email protected]

About

OpenAPI 3.1 spec for the AudD music recognition API + canonical fixtures

audd.io

Topics

apiauddmusicmusic-recognitionmusic-recognition-apiopenapiopenapi-3-1openapi-specificationrecognitionshazamshazam-api

Resources

Readme
MIT license

Security policy

Security policy
Activity
Custom properties

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.