Skip to main content
POST
Eleven Forced Alignment
eleven-forced-alignment aligns a transcript you already have to its audio and returns the start and end time of every word. Confirm live rates on the SnapGen models page. Failed requests are not charged.
string
required
Set to eleven-forced-alignment.
file
The audio file, sent as multipart/form-data, up to 50 MB. Send file or audio_url, not both.
string
Public http or https URL of the audio. The gateway downloads it (up to 50 MB). Send audio_url or file, not both.
string
required
The transcript to align, up to 100,000 characters.

Request

Upload a local file as multipart/form-data:
Or send JSON with a public audio_url:
The response is JSON with words[], each with text, start, end, and loss, plus an overall loss.

Price examples

Synchronous audio endpoints reject Idempotency-Key. If a request times out, check your Console request logs before you retry. See Forced alignment for every field, the response, and errors.