<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ben super</title>
    <description>The latest articles on DEV Community by ben super (@ben_super_e67b81fe09a1141).</description>
    <link>https://dev.to/ben_super_e67b81fe09a1141</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4276049%2F6b647b93-9cd5-405a-9490-e3f9175de2be.png</url>
      <title>DEV Community: ben super</title>
      <link>https://dev.to/ben_super_e67b81fe09a1141</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ben_super_e67b81fe09a1141"/>
    <language>en</language>
    <item>
      <title>A five-word test for captions that change at the wrong moment</title>
      <dc:creator>ben super</dc:creator>
      <pubDate>Thu, 03 Dec 2026 03:42:50 +0000</pubDate>
      <link>https://dev.to/ben_super_e67b81fe09a1141/a-five-word-test-for-captions-that-change-at-the-wrong-moment-42jl</link>
      <guid>https://dev.to/ben_super_e67b81fe09a1141/a-five-word-test-for-captions-that-change-at-the-wrong-moment-42jl</guid>
      <description>&lt;p&gt;Try reading “We ship on Friday. Usually.” out loud. Pause after “ship” and give “Usually” its own beat. Now imagine the screen showing four words at a time. “We ship on Friday.” appears before you have even said what day you ship. The transcript is accurate, but the caption gives away the second half of the sentence.&lt;/p&gt;

&lt;p&gt;I work on &lt;a href="https://talksnip.com/" rel="noopener noreferrer"&gt;TalkSnip&lt;/a&gt;, a video clipping tool. Here’s a small fixture I checked against our caption grouping code. You can reuse it with any transcription system that returns a start and end time for each word. The timings below are synthetic, so the test needs no audio file.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Word&lt;/th&gt;
&lt;th&gt;Start (s)&lt;/th&gt;
&lt;th&gt;End (s)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;We&lt;/td&gt;
&lt;td&gt;0.00&lt;/td&gt;
&lt;td&gt;0.15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ship&lt;/td&gt;
&lt;td&gt;0.16&lt;/td&gt;
&lt;td&gt;0.40&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;on&lt;/td&gt;
&lt;td&gt;1.22&lt;/td&gt;
&lt;td&gt;1.35&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Friday.&lt;/td&gt;
&lt;td&gt;1.36&lt;/td&gt;
&lt;td&gt;1.80&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Usually.&lt;/td&gt;
&lt;td&gt;1.90&lt;/td&gt;
&lt;td&gt;2.40&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I ran this with a four-word cap, a 32-character budget and a pause threshold of 0.6 seconds. The resulting groups were:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;We ship
on Friday.
Usually.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two boundaries are worth testing separately. Before adding “on”, subtract the end of “ship” from the start of “on”. That gives a silent gap of 0.82 seconds, enough to start a new group. Before “Usually.” the silence is only 0.10 seconds. This time the period on the &lt;strong&gt;previous&lt;/strong&gt; word closes the group. Checking punctuation on the incoming word would put “Friday.” on the wrong side of the cut.&lt;/p&gt;

&lt;p&gt;To see whether both rules actually work, change one thing at a time. Remove the period from “Friday.” and the last two groups should merge. Restore the period and close the long pause instead: the first four words should fit together again. A test that checks only the number of groups can miss a word landing on the wrong card, so compare the word lists themselves.&lt;/p&gt;

&lt;p&gt;A pause threshold is a starting point. A speaker can hesitate halfway through a name, and an automatic transcript can invent a period. When tuning captions for a particular speaker, keep a few awkward clips and replay the transitions with the sound on. That’s where an otherwise tidy grouping rule earns its keep.&lt;/p&gt;

</description>
      <category>testing</category>
    </item>
  </channel>
</rss>
