Skip to content

Suppress cross-channel transcript echo#5880

Open
ComputelessComputer wants to merge 2 commits into
mainfrom
fix/suppress-cross-channel-transcript-echo
Open

Suppress cross-channel transcript echo#5880
ComputelessComputer wants to merge 2 commits into
mainfrom
fix/suppress-cross-channel-transcript-echo

Conversation

@ComputelessComputer

@ComputelessComputer ComputelessComputer commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Add phrase-based live transcript echo suppression across mic and speaker channels, including partial and held-tail handling.


Note

Medium Risk
Changes real-time transcript output in the listener path; wrong heuristics could drop legitimate simultaneous speech, though tests and distinct-text cases mitigate that.

Overview
Adds cross-channel echo suppression in LiveTranscriptEngine so mic/speaker bleed does not duplicate the live transcript.

After normalization and TranscriptProcessor, a new CrossChannelEchoSuppressor filters new_words and partials by matching normalized tokens on different channels within a time window (≥3-token runs), plus echo-tail chaining for words that continue a recently suppressed duplicate. Kept finals extend rolling history (30s prune); distinct overlapping speech on another channel is left alone.

process and flush both run the suppressor and skip emitting an update when the delta is empty and there is no segment change. Unit tests cover final/partial echo, tail chaining after interrupted runs, and non-echo cross-channel text.

Reviewed by Cursor Bugbot for commit eb044c2. Bugbot is set up for automated code reviews on this repo. Configure here.

@netlify

netlify Bot commented Jul 2, 2026

Copy link
Copy Markdown

Deploy Preview for old-char canceled.

Name Link
🔨 Latest commit eb044c2
🔍 Latest deploy log https://app.netlify.com/projects/old-char/deploys/6a4627620b3de4000846db00

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 19c913f. Configure here.

Comment thread crates/listener-core/src/live_transcript.rs
Add phrase-based live transcript echo suppression across mic and speaker channels, including partial and held-tail handling.
Use newly detected duplicate runs as local tail state so interrupted cross-channel echoes stay suppressed across final and partial transcript updates.
@ComputelessComputer ComputelessComputer force-pushed the fix/suppress-cross-channel-transcript-echo branch from 19c913f to eb044c2 Compare July 2, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant