fix(stt): stop fabricating Qwen3-ASR stream timestamps - #930
Open
ainergiz wants to merge 3 commits into
Open
Conversation
Signed-off-by: Lucas Newman <lucasnewman@me.com>
|
Run the following from the repository root, then commit and push any changes: python -m pip install pre-commit
pre-commit run --all-filesThe project's pre-commit configuration includes Black and the other required formatters. |
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
Closes #927.
Qwen3-ASR derives partial streaming timestamps from token-budget progress, so changing
max_tokenschanges the reported timing for identical text. Generated text has no real audio alignment, so this change makes text deltas untimed and keeps only coarse audio chunk extents.Changes
start_time=Noneandend_time=Nonefor text-delta events.Compatibility
Streaming consumers must handle nullable
start_timeandend_timeon text deltas. The server serializes these asnull. Numeric values are coarse audio chunk extents, not transcription timestamps.Validation
git diff --checkpassed.max_tokens=64and8192.