Reference

Enterprise response and match fields

The chunked response shape of the AudD enterprise endpoint (enterprise.audd.io): per-chunk offset, per-song score, ISRC/UPC, accurate offsets, and the request parameters that control chunking.

view .md auddenterpriseoffsetstart_offset

We have a separate endpoint that handles large files: the enterprise endpoint (POST https://enterprise.audd.io/). You can send hours-long or even days-long audio to this endpoint: full-length songs, short-form videos, podcasts, broadcasts, DJ sets. When you upload a file, our servers split it into 12-second chunks, and the response contains all the tracks recognized in them. The response is different from the standard endpoint’s: result is an array of chunks, and each chunk has its offset in the file and the songs recognized in it. On this page: the response, the fields of each song, and the request parameters that control the chunking. For the standard endpoint, which returns a single result object, see the recognition result fields reference.

Response shape

result is an array. Each element in the array is a chunk with the following members:

FieldTypeDescription
offsetstringThe position, in the file you submitted, of the start of the 12-second fragment this chunk covers, MM:SS or HH:MM:SS
songsarrayThe songs recognized in this chunk. Usually there’s one song; there can be more when two tracks overlap (e.g., a DJ transition)

At the top level, the response also has execution_time (a string like "159.226763ms"), and status is "success" as usual. Here’s an example of a response:

{
  "status": "success",
  "result": [
    {
      "songs": [
        {
          "score": 81,
          "artist": "Tears For Fears",
          "title": "Everybody Wants To Rule The World",
          "album": "Songs From The Big Chair",
          "release_date": "2014-11-10",
          "label": "UMC (Universal Music Catalogue)",
          "timecode": "00:57",
          "isrc": "GBUM71403885",
          "upc": "00602547037169",
          "song_link": "https://lis.tn/NbkVb"
        }
      ],
      "offset": "00:00"
    }
  ],
  "execution_time": "159.226763ms"
}

Song fields

Each entry in the songs array of a chunk has the following fields:

FieldTypeDescription
scoreintegerThe confidence of the match, 0–100; the higher, the stronger. An enterprise feature, available on a Startup plan or higher, on request
artiststringThe artist of the track
titlestringThe title of the track
albumstring | nullThe album the recording appears on
release_datestring | nullThe release date, YYYY-MM-DD
labelstring | nullThe record label
timecodestringThe position, in the original song, where the matched fragment is playing, MM:SS. It’s a position in the song, not in your file
isrcstring | nullThe International Standard Recording Code of the recording. An enterprise feature, available on a Startup plan or higher, on request
upcstring | nullThe Universal Product Code of the release. An enterprise feature, available on a Startup plan or higher, on request
song_linkstringThe universal link to the song’s page on lis.tn
start_offsetintegerOnly with accurate_offsets=true. The start of the matched fragment, in milliseconds, in the 12-second chunk (from 0 to about 12000). See below
end_offsetintegerOnly with accurate_offsets=true. The end of the matched fragment, in milliseconds, in the 12-second chunk

offset vs. start_offset / end_offset

Please note that start_offset isn’t the same as offset: offset places the chunk in the file, and start_offset places the match in the chunk. If you confuse them, the timestamps will be off by minutes.

offset is the position, in the audio file you submitted, of the start of the 12-second fragment that contains the match (MM:SS or HH:MM:SS). start_offset and end_offset are the positions of the start and the end of the match, in milliseconds, in that 12-second fragment; they’re in the response only with accurate_offsets=true. They aren’t seconds in the file: their values are from 0 to about 12000.

To get the position of a match in the file, add the song’s start_offset (divided by 1000, since it’s in milliseconds) to the chunk’s offset in seconds:

file_seconds = parse_mmss(chunk.offset) + song.start_offset / 1000

So if the chunk’s offset is "04:48" and the song’s start_offset is 3520, the match starts at 288 + 3.52 = 291.52 seconds into the file.

Request parameters

Send the parameters as multipart/form-data. There are two ways of sending the audio: provide a URL of the file (or of a web page that contains it) in the url parameter, or post the file in the file parameter. api_token is required for all your requests.

ParameterTypeDescription
returnstringBy default, the enterprise endpoint doesn’t return the provider blocks (Apple Music, Deezer, MusicBrainz). If you need them, send an email to [email protected]. Each song has song_link and, with enterprise features, isrc and upc
limitintegerThe maximum number of chunks the server can process (the server won’t use more requests than this number from your account). Always set it in development; see the note below
everyintegerHow many chunks should be recognized in a row
skipintegerHow many 12-second chunks are skipped after each recognized run. Together with every, it lets you sample the file instead of recognizing all of it
skip_first_secondsintegerHow many seconds of the file the server should skip at the beginning before starting the music recognition (the start time of the first chunk). Should not be used together with use_timecode
use_timecodestringSet to "true" if you want the server to use the time represented in t, time_continue, or start parameters of the URL, if there is one, as skip_first_seconds. Should not be used together with skip_first_seconds
accurate_offsetsstringSet to "true" to get accurate start and end offsets of the recognized tracks (start_offset and end_offset)

Always set limit during development. The requests to the enterprise endpoint are counted as 1 request per 12 seconds of audio, and without a limit, the server can process hours of audio before it returns. So set limit to a small number while you’re testing.

Notes

  • result is an array, not an object. Go through the chunks, and then through the songs of each chunk.
  • A chunk can have more than one song. In this case, the songs with a lower score are usually from the audio that overlaps or blends with the main song, not separate placements.
  • The SDKs flatten the chunks into one list of matches with start_seconds and end_seconds: the positions of the match in your file, in seconds, calculated from offset and start_offset for you (the SDKs request accurate_offsets=true by default, so the seconds are precise). The raw start_offset and end_offset are there as well. Use the formula above only when you call the HTTP API yourself.
  • score, isrc, and upc are enterprise features, available on a Startup plan or higher, on request: email [email protected]. Without them, the response doesn’t have these fields.
  • start_offset and end_offset are only in the response if the request has accurate_offsets=true.

Related

Reading this as an AI agent? The raw Markdown is at reference/enterprise-match-fields.md, and the full index is /resources/llms.txt.