Skip to content
Sign in

/docs · General · Practical

QC in one call: one verdict against a spec

POST /v1/qc measures a file and holds it against a delivery target, the starting limits or your own: pass, warn or fail, rule by rule, with the status and margin of every measure.

Updated Nov 19, 2026

View as Markdown


Who this is for

You deliver audio somewhere with rules: a podcast feed, a streaming platform, a broadcaster, or your own pipeline with limits you set. You want one answer per file, and you want to see why. One call measures the file and holds it against a spec, and the answer says pass, warn or fail, rule by rule.

It is the same decision engine as the QC view in your browser, behind your key. It does not judge how a voice sounds and it does not read the words: see what AudioLab does not do.

One call

curl https://audiolab.tools/v1/qc \
  -H "Authorization: Bearer $AUDIOLAB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://audiolab.tools/samples/voice/speech-female-pangram.mp3", "spec": "target-podcast"}'

No key yet? curl -X POST https://audiolab.tools/v1/keys gives you one without an account. A local file goes in the request with -F file=@episode.wav and the spec in the query (/v1/qc?spec=target-podcast); a file over 4 MB goes by url, or in one request through the upload door. qc decodes at most about 7.7 minutes of 48 kHz stereo (a 16-bit WAV of about 88 MB); for the loudness of a full episode, check-target handles up to 3 hours.

What comes back

This is the answer for our own sample, a 15-second spoken pangram, against the podcast target. We generated it at build time with the API’s own code, from the engine’s real output for this file:

QC report · Apple Podcasts: -16 LUFS, -1 dBTP

speech-female-pangram.mp3 · 15.12 s

Fail

1 rule broken: Integrated loudness.

Chosen by: Apple Podcasts, a published delivery target (checked 2026-08-22).

  • Clipped samplescritical

    pass

    0 · limit max 0 · validated

    Clipped samples is 0, inside your limit (at most 0).

  • Dropoutscritical

    pass

    0 · limit max 0 · validated

    Dropouts is 0, inside your limit (at most 0).

  • Peakcritical

    pass

    -5.3 dBFS · limit min -60.0 dBFS · validated

    Peak is -5.3 dBFS, inside your limit (at least -60.0 dBFS).

  • Integrated loudness

    fail

    -23.2 LUFS · limit min -16.5 LUFS · max -15.5 LUFS · validated ±0.1 LUFS

    Integrated loudness is -23.2 LUFS, 6.7 LU under your minimum of -16.5 LUFS. The delivered audio is quieter than your range.

    Fix Change the gain before encoding, by the same amount for every utterance, then measure again.

  • True peak

    pass

    -5.3 dBTP · limit max -1 dBTP · validated ±0.2 dBTP

    True peak is -5.3 dBTP, inside your limit (at most -1 dBTP).

Rules outgoing-qc-rules/1 · limits hash deeac65d · the live answer also carries provenance and a report link

The JSON answer
{
  "rulesVersion": "outgoing-qc-rules/1",
  "engineVersion": "0.4.1",
  "generatedAt": "2026-11-19T00:00:00.000Z",
  "file": {
    "name": "speech-female-pangram.mp3",
    "durationSec": 15.12
  },
  "thresholdSet": {
    "id": "target-podcast",
    "name": "Apple Podcasts: -16 LUFS, -1 dBTP",
    "chosenBy": "Apple Podcasts, a published delivery target (checked 2026-08-22).",
    "note": "Pass band: half an LU either side of the target loudness, and the true-peak ceiling of the target itself, as in the API's check-target. A value over a limit by less than the margin of its measure is uncertain.",
    "hash": "deeac65d"
  },
  "criticalOn": [
    "voice.clipping",
    "chain.dropoutCount",
    "level.peak"
  ],
  "values": {
    "loudness.integrated": -23.1628,
    "loudness.truePeak": -5.2957,
    "level.peak": -5.3161,
    "voice.clipping": 0,
    "chain.dropoutCount": 0
  },
  "rules": [
    {
      "lens": "voice.clipping",
      "name": "Clipped samples",
      "unit": "count",
      "status": "validated",
      "limit": {
        "max": 0
      },
      "critical": true,
      "slack": 0,
      "fix": null,
      "value": 0,
      "outcome": "pass",
      "distance": null,
      "explanation": "Clipped samples is 0, inside your limit (at most 0)."
    },
    {
      "lens": "chain.dropoutCount",
      "name": "Dropouts",
      "unit": "count",
      "status": "validated",
      "limit": {
        "max": 0
      },
      "critical": true,
      "slack": 0,
      "fix": null,
      "value": 0,
      "outcome": "pass",
      "distance": null,
      "explanation": "Dropouts is 0, inside your limit (at most 0)."
    },
    {
      "lens": "level.peak",
      "name": "Peak",
      "unit": "dBFS",
      "status": "validated",
      "limit": {
        "min": -60
      },
      "critical": true,
      "slack": 0,
      "fix": null,
      "value": -5.3161,
      "outcome": "pass",
      "distance": null,
      "explanation": "Peak is -5.3 dBFS, inside your limit (at least -60.0 dBFS)."
    },
    {
      "lens": "loudness.integrated",
      "name": "Integrated loudness",
      "unit": "LUFS",
      "status": "validated",
      "limit": {
        "min": -16.5,
        "max": -15.5
      },
      "critical": false,
      "slack": 0.1,
      "fix": "Change the gain before encoding, by the same amount for every utterance, then measure again.",
      "value": -23.1628,
      "outcome": "fail",
      "distance": 6.662800000000001,
      "explanation": "Integrated loudness is -23.2 LUFS, 6.7 LU under your minimum of -16.5 LUFS. The delivered audio is quieter than your range."
    },
    {
      "lens": "loudness.truePeak",
      "name": "True peak",
      "unit": "dBTP",
      "status": "validated",
      "limit": {
        "max": -1
      },
      "critical": false,
      "slack": 0.2,
      "fix": null,
      "value": -5.2957,
      "outcome": "pass",
      "distance": null,
      "explanation": "True peak is -5.3 dBTP, inside your limit (at most -1 dBTP)."
    }
  ],
  "verdict": "fail",
  "summary": "1 rule broken: Integrated loudness.",
  "verdictWord": "Fail",
  "verdictMeaning": "At least one rule is broken by more than the margin of its measure. The rules below say which, and what to do.",
  "specs": "https://audiolab.tools/docs/start/qc-in-one-call#specs"
}

Read it from the top: the verdict follows from the rules, never from an average. Each rule names a lens, its measured value, your limit, the status of the measure and its margin, and one outcome:

  • pass: inside the limit. A value just inside passes; only a value past the limit can be uncertain.
  • fail: past the limit by more than the margin. The rule says what it means and which stage to look at.
  • uncertain: past the limit, but by less than the margin of the measure, so the number cannot say which side the file is on. Not a failure: loosen the limit by the margin, or fix the file.
  • information: the measure is a proxy. A proxy compares, it does not state a fact, so it never passes or fails.
  • not-measured: the measure could not be taken on this file, so the rule was not checked.

The verdict is fail when a rule fails, warn when nothing fails but a value is uncertain, a proxy is outside the range or a measure is missing, and pass when every rule passes. Every answer also carries provenance (the engine and its build, the SHA-256 of the bytes that were measured, the options) and, once the call is logged (only an outage of our event log leaves it out), a reportUrl, so the same file can be checked again and the verdict shown to someone else.

Specs

A spec is a set of limits with a name and the reason it was chosen. Pick one with "spec":

spec Limits Chosen by
starting-point
Integrated loudness: min -22.0 LUFS · max -18.0 LUFS
True peak: max -2 dBTP
Noise floor: max -65.0 dBFS
Bandwidth: min 7900 Hz
AudioLab measured the range (5th to 95th percentile of 48 clean synthetic-voice recordings, 2026-10-11), rounded outward. It is a start, not a standard.
target-spotify
Integrated loudness: min -14.5 LUFS · max -13.5 LUFS
True peak: max -1 dBTP
Spotify, a published delivery target (checked 2026-08-22).
target-youtube
Integrated loudness: min -14.5 LUFS · max -13.5 LUFS
True peak: max -1 dBTP
YouTube, a target from community measurements; we found no number that the platform publishes itself, so it can shift.
target-tidal
Integrated loudness: min -14.5 LUFS · max -13.5 LUFS
True peak: max -1 dBTP
TIDAL, a target from community measurements; we found no number that the platform publishes itself, so it can shift.
target-amazon-music
Integrated loudness: min -14.5 LUFS · max -13.5 LUFS
True peak: max -2 dBTP
Amazon Music, a target from community measurements; we found no number that the platform publishes itself, so it can shift.
target-apple-music
Integrated loudness: min -16.5 LUFS · max -15.5 LUFS
True peak: max -1 dBTP
Apple Music (sound-check), a target from community measurements; we found no number that the platform publishes itself, so it can shift.
target-podcast
Integrated loudness: min -16.5 LUFS · max -15.5 LUFS
True peak: max -1 dBTP
Apple Podcasts, a published delivery target (checked 2026-08-22).
target-tiktok
Integrated loudness: min -14.5 LUFS · max -13.5 LUFS
True peak: max -1 dBTP
TikTok, a target from community measurements; we found no number that the platform publishes itself, so it can shift.
target-instagram
Integrated loudness: min -14.5 LUFS · max -13.5 LUFS
True peak: max -1 dBTP
Instagram / Reels, a target from community measurements; we found no number that the platform publishes itself, so it can shift.
target-soundcloud
Integrated loudness: min -14.5 LUFS · max -13.5 LUFS
True peak: max -1 dBTP
SoundCloud, a target from community measurements; we found no number that the platform publishes itself, so it can shift.
target-deezer
Integrated loudness: min -15.5 LUFS · max -14.5 LUFS
True peak: max -1 dBTP
Deezer, a target from community measurements; we found no number that the platform publishes itself, so it can shift.
target-ebu-broadcast
Integrated loudness: min -23.5 LUFS · max -22.5 LUFS
True peak: max -1 dBTP
EBU R128 broadcast, a published delivery target (checked 2026-08-22).
target-atsc-broadcast
Integrated loudness: min -24.5 LUFS · max -23.5 LUFS
True peak: max -2 dBTP
ATSC A/85 (US broadcast), a published delivery target (checked 2026-08-22).

On every spec, unless you switch them off with critical: Clipped samples, Dropouts, Peak. Each fails the file on its own.

The target-... specs are delivery targets. Four are published by their owner (Spotify, Apple Podcasts, EBU R128 and ATSC A/85); the other eight come from community measurements and can shift, and each spec’s chosenBy says which kind it is. They judge like check-target: half an LU either side of the target loudness, and the true-peak ceiling of the target itself; a true peak over the ceiling by less than the margin of the measure is uncertain, further over is a fail. starting-point is not a standard: it is the range we measured on clean synthetic voice, a start to replace with your own.

Your own limits

Send limits instead of spec: one entry per lens, each with a min, a max or both, up to 30 lenses. A limit on a lens with a critical fault (clipping, dropouts, peak) holds next to it: the rule gets both bounds, and it counts as critical only when the critical bound is the one that fails. A margin in percent (pitch) is a share of the limit. The voice is measured with the k2 speech detector unless you send "speechDetector": "v1", so the verdict matches the QC view in the browser.

{
  "url": "https://example.com/episode.wav",
  "limits": {
    "loudness.integrated": { "min": -17, "max": -15 },
    "loudness.truePeak": { "max": -1 },
    "voice.noiseFloor": { "max": -55 }
  }
}

A limit on a lens that is a proxy is still allowed, and still answered as information. A lens that gives no single number (a label, a series) is refused with a 400 that names it, and so is a room lens (room.*): it needs a clap or a sweep, which qc does not take, so measure it with analyze/profile and the profile room.

Critical faults

Three faults fail a file on their own, whatever else passes: clipped samples, a gap of digital silence inside the sound, and a file whose loudest sample stays under -60 dBFS. They are on for every spec. Send "critical": [] to switch them all off, or list the ones you want.

What it is not

  • Not a composite score. An average hides a critical defect, and no weighting of ours has been validated against anything.
  • Not a listening test. It measures; it does not say whether a voice sounds natural or a mix sounds good.
  • Not a platform’s approval. A target-... spec holds the file to a delivery target; the platform’s own checks can differ.

Next in General docs

Check audio quality in CI: fail a build when a file breaks your rules →

A short Python script and a GitHub workflow that measure each audio file with the AudioLab API, compare the numbers with limits you set, and fail the build with a message that says why.

More in General docs