Forced alignment
POST /v1/audio/alignments takes an audio file and its transcript and returns
when every word was said, the timing of every sound inside it, and how well
each word fits the audio. Fillers, laughter, breaths and cut-off words get
timestamps of their own. English only. $0.25 per audio hour.
Parameters
Transcript conventions
The aligner places exactly what the transcript contains, so write what you hear, not a cleaned-up version:
Casing and punctuation are ignored, and tags match in any casing ([Laughter],
[um]). CrisperWhisper’s verbatim.text already follows these
conventions: send it as text unchanged. The Quickstart has the
two calls, transcribe then align,
in curl and Python.
Vocal sound events
Each tag is a unit of the model like a phone, so the event gets its own word
in the response, with type: "sound":
[UH] and [UM] come back with type: "filler" and the phones FUH and
FUM. A tag the model does not know, such as [music], is left out of the
alignment and listed in skipped.
When the transcript is wrong
The transcript is taken as true. A word that was said but is missing from it is
absorbed by its neighbours; a word in it that was never said is squeezed into a
few frames. Both shift the boundaries around them and both show up as low
confidence. A transcript of a different recording fails with
400 alignment_failed or alignment_too_complex, and is not charged.
Response
Confidence
This is a different number from the confidence on
transcription words: that one is the speech
model’s certainty about what was said, this one is how well the audio
fits the word where it was placed. A word can be high on one and low on
the other, and checking both catches more than either alone.
Per 10 ms frame, the aligner compares the sound it placed there with the
best-fitting sound of the whole model; confidence is that fit averaged over
the word, from 1 (perfect) down to 0.
- Look at runs. One low word is usually a short or reduced one. Several in a row mean the transcript and the audio disagree there, typically speech that was not transcribed.
- Cut-offs and very short words score lower by nature. Judge them against their own kind, not against a fixed threshold.
- It ranks, it does not correct. The timestamps are the same either way; use it to filter words or to send stretches to review.
Python
Pricing and limits
$0.25 per audio hour, billed per second: $0.000069 per second, with the duration rounded up to a whole second per request. Funds are held before the audio is aligned and only what was used is charged; a request that fails is not charged. See Billing.
The limits are those of transcription: 25 MB per upload
and one hour of audio per request, so send long recordings compressed (an hour
of 48 kbps MP3 is about 22 MB). An hour aligns in one request with no drift:
the last minute is as accurate as the first. Idempotency-Key works as
for transcription, bound to the model,
the language and the exact transcript.
Errors
The envelope and the general errors are those of transcription. Specific to alignment: