---
title: "QC in one call: one verdict against a spec"
description: "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."
cluster: General
level: Practical
updatedAt: 2026-11-19
lang: en
source: https://audiolab.tools/docs/start/qc-in-one-call
---

## 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](/voice-ai-check/qc), behind your key. It does not judge how a voice sounds and it does not read the words: see [what AudioLab does not do](/docs/start/what-audiolab-does-not-do).

## One call

```sh
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](/docs/start/jobs#a-large-file-in-one-request). `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](/api#ref-mixlab-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:

<QcApiExample spec="target-podcast" />

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"`:

<QcApiExample mode="specs" />

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](/api#ref-mixlab-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](/lenses), 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.

```json
{
  "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](/api#ref-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.
