AudD for archives and libraries
How archivists and digital librarians use AudD to list the released recordings in digitised radio, TV and tape collections: a sample first, then the whole collection with the AudD CLI, what a collection costs per hour of audio, and what does and doesn't match.
You can use AudD to identify the music in digitised radio, TV and tape collections. This page is for archivists and digital librarians who have a lot of audio and not much engineering time. We wanted to make it as simple as possible: you send us the files, we send you every recording we recognize in each one, with where it plays. The AudD CLI does it for a whole folder, with no code:
audd recognize ./sample --enterprise --limit 300 --max-files 20 --dry-run
audd recognize ./sample --enterprise --limit 300 --max-files 20 --format csv > sample.csv
job_id,index,input,status,cached,artist,title,album,release_date,label,isrc,upc,song_link,timecode,score,start_seconds,end_seconds,error
9smhaf,0,sample/tape-0001.mp3,matched,false,Barely Alive,Keyboard Killer,Lost in the Internet EP,2014-03-10,Disciple Recordings,FR4GL1069639,3610154900148,https://lis.tn/KeyboardKiller,00:41,100,48.001,57.66,
Here’s a row from the file: the item, the recording we found in it, and where the recording starts and ends in the item, in seconds. The isrc, upc and score columns are empty unless your account has enterprise features. Enterprise features such as ISRC and UPC codes and the match score are available on a Startup plan or higher, on request: email [email protected].
What you can do
Describe the music in a collection
A radio programme or a TV episode can have several songs in it, and often nobody wrote them down. We have a separate endpoint that handles large files, and it recognizes all the tracks in them: the enterprise endpoint, --enterprise in the CLI. You’ll get one row per match, with the path of the file, so you can join the list to your catalogue records.
timecode is the time in the song when the matched fragment is played. It isn’t a position in the item: for that, use start_seconds and end_seconds.
Check items before you put them online
Before you publish an item, you might want to know which commercial recordings are in it, and where. The list tells you that. Note that we only know which recording it is, we don’t know who has the rights to it today. The label is the label of a release the recording is on, and the rights decision stays with you.
A sample first, then the whole collection
Copy 20 or so items to a new folder and try the CLI on that folder first. Pick them from every decade, carrier and kind of programme you have. The dry run (the first command above) shows how many files the CLI found and how many requests the run would use. Nothing is sent. Then run the sample, and listen to a few of the matches, and to a few of the items with no match.
Once the sample looks right, you can run the whole collection:
audd recognize ./collection --enterprise --limit 300 --max-files none --format csv > collection.csv
--limit is the upper bound for the number of 12-second chunks we’ll scan in each file, so 300 covers an hour. Set it to the length of your longest item, or use --limit none. The CLI asks you to confirm before it sends anything; in a script, add --yes.
Stopping and resuming
For a large amount of files, this will take a while. However, you can stop the CLI and restart it without losing progress: every batch is a job that’s saved after each file, so Ctrl-C or a dropped connection loses no finished files.
audd jobs list
audd jobs resume <id>
audd jobs resume sends the files that are left. Files that failed after their upload started may have been counted, so they’re sent again only with --retry-failed. Results are cached by file contents, so running the same folder again doesn’t spend requests on the files that are done.
The CLI sends 4 files at a time; you can change that with --concurrency. The enterprise endpoint has a default limit on how many requests an account can run at the same time. If you need more files processed in parallel, write to [email protected] and we’ll raise it.
What a collection costs
We count requests to the enterprise endpoint as 1 request per 12 seconds of audio, so an hour of audio is 300 requests. If the last chunk of an item is shorter than 12 seconds, it’s still counted as 1 request. If you don’t want every chunk to be recognized and counted as a request, there are two parameters you can use: --skip and --every. With --skip 4 --every 1, we recognize 12 seconds, then skip 48 seconds, then recognize 12 seconds again, and so on, so an hour is 60 requests. With --skip 9 --every 1, it’s 30. --every on its own doesn’t skip anything.
| Hours of audio | Every chunk | --skip 4 --every 1 | --skip 9 --every 1 |
|---|---|---|---|
| 100 | 30,000 requests | 6,000 requests | 3,000 requests |
| 1,000 | 300,000 requests | 60,000 requests | 30,000 requests |
| 10,000 | 3,000,000 requests | 600,000 requests | 300,000 requests |
So if you scan 1,000 hours in one month, it costs $1,275 on the Pro plan ($850 + 100 × $4.25) when we recognize every chunk. With --skip 4, it’s $300 on the Indie plan ($5 + 59 × $5.00), and with --skip 9, $150. For 10,000 hours scanned in full, ask us for a quote: at very large volumes, pricing goes down to about $2 per 1,000 requests. With --skip 9, the same 10,000 hours are 300,000 requests, or $1,275 on Pro. The prices are from our pricing page.
Unused included requests don’t roll over to the next month, so if you spread a scan over several months, plan each month’s share. If you need a hard monthly cap on requests, email [email protected] and we’ll set one on your account. New accounts get a free trial of 300 requests, where available; on the trial, the enterprise endpoint takes file uploads, and URLs need a paid plan.
What skipping misses
Please note that with --skip 4, there’s a 48-second gap after every chunk we scan (108 seconds with --skip 9). A recording that plays for less than that can fall in a gap and won’t be recognized. So we recommend recognizing every chunk of the items you’re going to publish, and sampling only to describe long programmes. See controlling enterprise endpoint cost for --skip-first-seconds and the other options.
One song per file
If you have one song per file, such as discs digitised track by track, you don’t have to scan the whole file. With --limit 1, the server only scans the first 12 seconds, so every file costs 1 request, whatever its length:
audd recognize ./discs --enterprise --limit 1 --max-files 500 --format csv > discs.csv
If a track starts with silence or a spoken introduction, the first chunk may not match: send that file again with --skip-first-seconds 30, for 1 more request. To rename and tag a folder of music files instead, see AudD Music Tagger.
What we recognize, and what we don’t
A match means the item contains a recording from our database of 160 million songs. Live recordings, concert tapes, field recordings and a station’s own productions match only if that recording was released and is in our database. If it was never released, there will be no match.
Note that the album, the release date and the UPC can belong to any release the recording is on, such as a single or a compilation. So the release date isn’t always the date of the first release.
We don’t publish a figure for old or worn recordings. Your sample is the best test. And if there are no matches, it doesn’t mean that the item has no music, only that we didn’t recognize any. See what music recognition matches for the cases in detail, and run a one-week pilot to measure them on your own audio.
Data handling
Audio is fingerprinted and then discarded: we keep fingerprints, not recordings. A request carries only the audio, your token and the recognition settings. Enterprise clients can sign a data processing agreement that puts this in writing: the audio is removed immediately after processing, and we don’t train models on it. For audio that can’t leave your own environment at all, we deploy on premises: contact [email protected].
There is no telemetry in the CLI: it talks only to AudD services, cover art hosts, and GitHub for the release check. See GDPR and music recognition and what we store for more.
If you have engineering time
If you’d rather have it in your own code, the archive scan recipe does the same in Python, with a resumable CSV. For the rest of the CLI, see Identify music from the command line.
Related
Reading this as an AI agent? The raw Markdown is at for/archives-and-libraries.md, and the full index is /resources/llms.txt.
