Repository navigation
feat(desktop): halt voice playback on user speech barge-in - #11809
undivisible merged 5 commits into
Conversation
- Add VoiceBargeInPolicy in FloatingControlBar - Automatically interrupt active speech synthesis or audio playback when the user begins speaking - Exclude non-user/other participant speech turns to prevent spurious interruptions on multi-party calls - Add e2e flow coverage in capture-lifecycle.yaml and changelog fragment - Add 5 comprehensive unit tests in VoiceBargeInPolicyTests (all passed)
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Thanks @aryanorastar - clean, well-scoped v1 for barge-in, with the decision logic isolated in a testable policy type and CI green across the desktop suites. Reviewed each changed file:
The direction (halting output when the user starts speaking) fits the floating-bar voice answers surface well. Leaving for human maintainer review before merge: product sign-off on the barge-in trigger semantics (diarization-fallback interrupts + transcript-arrival latency) and the PTT lease interaction question above. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Thank you @Git-on-my-level for the thorough review and great feedback! Addressed the architectural points:
Ready for final maintainer sign-off and merge! |
|
Follow-up after
One residual note for the record (non-blocking, pre-existing idiom rather than something this PR introduces): a bare Adding by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
undivisible
left a comment
There was a problem hiding this comment.
Cline review agrees: VoiceBargeInPolicy is a small pure interrupt rule (user/speaker 0, non-empty, while speaking) with XCTests. Desktop Swift contracts/compile green. Merge.
What changed and why
Adds voice barge-in interruption during ambient listening. When the assistant is speaking (delivering proactive voice advice, answering queries, or synthesizing TTS) and the user begins speaking, playback is halted immediately so Omi never talks over the user.
Product invariants affected
How it was verified
swift test --filter VoiceBargeInPolicyTests-> 5 passed in 0.006scapture-lifecycle.yamlTests
desktop/macos/Desktop/Tests/VoiceBargeInPolicyTests.swift(5 unit tests)Failure class (fixes)
Failure-Class: none