forced_alignment
Align a known transcript to existing audio to obtain exact per-word timings, enabling precise captions, lip-sync, and cut timing.
Instructions
Align a KNOWN script to existing audio → exact per-word timings (ElevenLabs).
Use when you already have the exact transcript (a recorded VO + its script) and want
precise timings for captions/lip-sync/cut timing. (Unlike transcribe, which discovers
the words — this snaps your given text to the audio.)
Args: audio: Local audio file path. text: The exact transcript/script spoken in the audio. captions: "srt" or "vtt" to also write a subtitle file from the aligned words.
Returns: {"words": , "characters": , "loss", "captions_path"?} or {"error"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| audio | Yes | ||
| captions | No |