11da0b61e0
I've had a chance to see how this script behaves with actual live caption tracks now, and there's room for improvement. In particular, it often generates cues that overlap - the next one appears before the previous one disappears. The browser player position handles this really poorly, and it's nearly unreadable. The solution is to, if two cues would overlap, merge them into a single multiline cue that displays for the full time. This is a lot easier to read. Some extra code is added to de-overlap any remaining cues (e.g. if there's a third cue that would also overlap). This will reduce the time that the earlier cue gets shown below my preferred minimum, but not really much we can do about that if people are talking/typing quickly. The code can easily be tweaked to set a different number of maximum lines per cue if desired. |
||
---|---|---|
.. | ||
features | ||
lib | ||
resources/raw | ||
scripts | ||
spec | ||
systemd | ||
Gemfile | ||
Gemfile.lock |