Skip to main content
PATCH
Correct words in a clip’s transcript — typically misspellings or names the speech-to-text got wrong (for example Kaz Schwarz → Cozz). Corrections flow into the clip’s subtitles. Read the transcript first to find what you want to change, then send a patch.
Transcript edits do not re-export the video. After patching, call POST /render to produce a clip with the corrected subtitles. The cached renderedUrl is cleared automatically on every patch.

Authentication


Read the transcript

Returns the word-level transcript. Use it to locate the words to fix and to read their index and timestamps for precise targeting. Preserved transcripts also return wordId, sourceWordId, sentenceId, sourceSentenceId, sentenceStart, and sentenceEnd. Corrections publish a new working revision and preserve the original selection transcript. They do not request speech recognition again or infer new sentence edges from edited punctuation. Provider timing may include words whose start and end are identical. These records still carry word identity and sentence markers; keep them when editing the transcript rather than inventing a spoken duration or new sentence boundary.

Query Parameters

Also available at GET /companies/{companyId}/clips/{clipId}/transcript.

Response


Patch the transcript

Send one or more operations. Each operation targets a span of words and replaces it with the to phrase. There are three ways to target a span — pick whichever is most convenient:

Operation fields

A span is collapsed into the replacement: the first word in the span becomes the new text spanning the original span’s timing, and the rest of the span is removed from captions. Timing stays aligned to the audio, so the corrected text shows at the right moment.

Response


Visible region vs extended region

A clip is transcribed from the full extended source, so the transcript can include words in the padding that aren’t shown in the current cut. The visible flag on each word tells you whether it currently renders:
  • Editing a visible word changes the subtitles as expected.
  • Editing a hidden word (outside the visible region) is saved, but it won’t appear unless the clip is extended in the studio to include that word. These show up as appliedToHiddenWords in the patch response.
For most spelling/name fixes you don’t need to think about this — text targeting (from/to) replaces every matching word regardless of region, and the timestamps returned by GET already account for it.

Errors

Render Clip

Export the clip with the corrected subtitles