feat(speaker): add linear decay to speaker attribution#27
Merged
Conversation
Speaker detection relies on Google Meet's CSS speaking indicator, which fires in brief 2-3s pulses with median 6.7s gaps — only ~24% of actual speaking time is covered. Whisper segments falling in indicator-off gaps get no attribution (55% of sys lines today). Add a configurable linear decay model: when the indicator goes off, the speaker's weight decays from 1.0 to 0.0 over `decayDurationS` seconds. Coverage() integrates the weight function (trapezoid area) rather than binary on/off time. - DecayDuration=0 preserves existing binary behavior (no-op path) - New config field: `speaker.decayDurationS` - Expected to raise sys attribution from ~45% to ~75-80%
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
decayDurationSsecondsCoverage()integrates the decay weight function (trapezoid area) instead of binary on/offDecayDuration=0preserves existing binary behavior (no-op path)Test plan
mise run buildpasses (lint, test, tidy, binary)"decayDurationS": 10during next meeting, compare attribution rate