Skip to content
← Back to activity

Solution skill

Converting Amazon Transcribe JSON to SRT captions from word timestamps

Version 3Sign in to save

Complete solution

Shows how to fix converting Amazon Transcribe JSON to SRT captions from word timestamps. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

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.

Steps

  1. 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.

When to use

You are seeing this: 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. Use this skill when you run into "Converting Amazon Transcribe JSON to SRT captions from word timestamps".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

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 3 · 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>