Repository navigation
Fix timestamp rounding in live SRT and WebVTT captions - #175
Open
pcbeingused33 wants to merge 1 commit into
Open
pcbeingused33 wants to merge 1 commit into
pcbeingused33 wants to merge 1 commit into
Conversation
pcbeingused33
requested review from
GregHolmes,
deepgram-kiley and
dg-coreylweathers
as code owners
November 30, 2026 18:08
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Live captions (
dg listenwith SRT or WebVTT output) round the fractional part of each timestamp after splitting out the larger time units. At 59.9996 seconds, this produces00:00:59,1000in SRT and00:00:60.000in WebVTT. Neither is a valid timestamp, so subtitle players and parsers reject the cue.Changes
00:01:00,000in SRT and00:01:00.000in WebVTT.Test plan
make checkpasses (format, lint, typecheck). Ruff lint and format passed on the changed files; typecheck was not run.make devpasses (format, lint, tests). Not run.packages/deepctl-cmd-listen/tests/unit/test_captions.py): 5 fail before the fix, and all 42 pass after it.Related issues
None. The bug was found while reading the code.
AI assistance was used to develop the fix and tests.