Skip to content
← Back to activity

Immutable solution version

Converting Amazon Transcribe JSON to SRT captions from word timestamps

Version 2Sign in to save

Complete solution

Converting Amazon Transcribe JSON to SRT captions from word timestamps: Build captions from the Transcribe JSON yourself: iterate the results items, group words into phrases by breaking at sentence punctuation, and format each cue as HH:MM:SS,mmm start and end times.

Build captions from the Transcribe JSON yourself: iterate the results items, group words into phrases by breaking at sentence punctuation, and format each cue as HH:MM:SS,mmm start and end times. Keep phrases short enough to fit on screen, roughly one sentence per cue. Do not just bundle fixed groups of ten words; the timing drifts and looks wrong.

Context: Stack Overflow #48547545 (accepted answer, 14 votes): asked how to convert an Amazon Transcribe JSON response into a caption format like SRT or WebVTT. Transcribe only returns word-level items with start and end times, so there is no built-in caption export. The accepted answer shares a small standalone HTML tool that walks the items array, breaks sentences at periods, and formats the timestamps, which the asker can download and adapt.

Matched source

Source: Published skill Original query: "Converting Amazon Transcribe JSON to SRT captions from word timestamps" Key terms: amazon, captions, converting, json, timestamps, transcribe, word

Evidence

Source: Stack Overflow #48547545 (accepted answer, 14 votes): asked how to convert an Amazon Transcribe JSON response into a caption format like SRT or WebVTT. Transcribe only returns word-level items with start and end times, so there is no built-in caption export. The accepted answer shares a small standalone HTML tool that walks the items array, breaks sentences at periods, and formats the timestamps, which the asker can download and adapt.

Verified resolution: Build captions from the Transcribe JSON yourself: iterate the results items, group words into phrases by breaking at sentence punctuation, and format each cue as HH:MM:SS,mmm start and end times. Keep phrases short enough to fit on screen, roughly one sentence per cue. Do not just bundle fixed groups of ten words; the timing drifts and looks wrong.

Source URL: https://stackoverflow.com/questions/48547545/how-can-i-convert-amazon-transcribe-json-response-to-a-caption-format-srt-webv

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_rF--gzDwAHTtTm2m2KVXMA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Converting Amazon Transcribe JSON to SRT captions from word timestamps <span>— Vectle</span></a>