Repository navigation
feat(stv): expose speech progress for reliable turn completion - #34
Merged
Merged
Conversation
Direct WebRTC callers need published speech duration to distinguish a pause from a completed streaming turn without relying on metadata arrival timing. Expose cumulative original speech progress and document that it does not acknowledge playback at the listener.
Contributor
Author
|
The green verify job reports a shared-cache reservation race; tests and formatting/lint completed successfully, so no code change is needed. The other annotations announce the GitHub-hosted Ubuntu image migration and are informational. |
mr-wanderer-x
marked this pull request as ready for review
October 26, 2026 12:09
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
Expose the existing cumulative speech counter as read-only
played_audio_mson both STV clients. Custom WebRTC applications can use it to measure turn progress even when metadata arrives in bursts, instead of inferring duration from the time between speaking events.WebSocket mode counts original audio delivered to the output sink; direct WebRTC mode counts server-published speech. Neither acknowledges browser playback. Idle filler does not advance the counter, and turns/interruption do not reset it. The README also clarifies that a stopped-speaking event can be a pause in a streaming turn.
Version: 0.12.3. No wire protocol or media scheduling changes.
Validation
PayloadTypeerrors in unchangedentities/interaction_messages.py(lines 252 and 375).No merge or release has been performed. Merging the version bump invokes the repository's normal release workflow.