Skip to content

Let the owner's words interrupt Alpha however loud the phone hears them - #2415

Open
lalalune wants to merge 1 commit into
developfrom
fix/voice-near-field-level
Open

lalalune wants to merge 1 commit into
developfrom
fix/voice-near-field-level

Conversation

@lalalune

@lalalune lalalune commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Why

The owner wants Alpha to stop speaking when they talk over it, and to keep speaking for sounds without words and for its own echo. On their Pixel, barge-in on the phone's own recognizer never fired: every word they said over Alpha was classed as a far voice and dropped.

Evidence comes from the voice QA harness on build 832 (Voice = On-Device), runs 832-case2 and 832-levels, cases 2, 3 and 10b. While Alpha speaks, the level of what is heard is set by Alpha's echo and the echo canceller:

  • Owner's words: "Wait, what time is it?" at −46 and −42.5 dBFS, "No." at −42, "Wait" at −40 and −41.5. All are below the fixed nearFieldDb of −38, so none interrupted.
  • TV stimulus (played 15 dB quieter, with reverb): −43 to −48.5. That is the same band.

No threshold separates the owner from a TV here. The only pass was a "No" at −26, after the phone was moved closer.

What

  • spec/app/voice/index.md: removes Distant, nearFieldDb and Hearing.levelDb. makesATurn is now Words only. The prose records the Pixel finding.
  • voice.vibe and spokenReference.ts: remove the level plumbing on both routes. voiceLevel.ts (the loud-room tracker from d2d9a73) is deleted, because nothing else used it.
  • Unchanged: the echo, filler, stray-word and no-words rules, the Thinking-preview safety and the closeMic drain from d2d9a73.

Rules weakened

  • "Only the owner's words interrupt Alpha, thinking or speaking; a sound without words, a voice far from the phone, or Alpha's own voice never does" loses "a voice far from the phone". Its heading and every citation are renamed.
  • lawAVoiceFarFromThePhoneNeverInterruptsAlpha is removed.
  • NubsCarson's café-chatter rule goes too (d2d9a73, "loud-room SNR gating"). Its +8 dB margin above the room's noise floor worked by shifting levels against the same −38 dBFS threshold, so it cannot be kept without it.
  • Why: the owner made words interrupting Alpha a requirement and a TV not interrupting it best effort, and loudness on this route cannot deliver the TV part.
  • Plainly: nearby café speech, a TV, or anyone else talking near the phone will now interrupt Alpha when it is three or more words, or one or two that include an interrupt word such as "stop" or "wait", and is not Alpha's own echo. Words from a TV or across the room that are not Alpha's echo, and are more than one or two stray words, now interrupt Alpha. Case 10b stays as a measured rate in the harness.

Tests changed

  • voice-barge-in.test.tsx: "does not stop Alpha for words heard far from the phone" is now "stops Alpha for the owner's words over it however quietly the phone hears them". It replays the Pixel's −46 dBFS "Wait, what time is it?", which must hush Alpha and be sent. It fails on develop.
  • voice-loud-room.test.tsx (rule above):
    • "ignores loud-room chatter and sound tags over Alpha while admitting near-field owner barge-in" (Cloud) is renamed "ignores sound tags over Alpha in a loud room while admitting the owner's barge-in". Its emitIgnoredCloudSpeech step for "Pass the coffee please" at peak 0.14, which asserted Alpha keeps Speaking with no hush and no turn, is removed.
    • "adapts native barge-in above a loud ambient floor and keeps Stop-to-send and Mute clean" (Local) is renamed "admits native barge-in in a loud room and keeps Stop-to-send and Mute clean". Its step for "pass the coffee please" at −23 dBFS, which asserted ["Speaking", hushed, ["Check the weather"]], is removed.
    • Under the new rule both chatter samples interrupt Alpha.
    • The VoiceLevelTracker tests are deleted along with the module: "converts linear frame peaks to RMS-equivalent dBFS with a safe silence floor" and "adapts effective loudness below NEAR_FIELD_DBFS in loud rooms without inflating baseline during Alpha playback".
    • "keeps native live preview alive through a Distant final while Thinking and drains closeMic(keep=true)" is renamed "…through a final without words while Thinking…". Its "someone across the room" final at −55 dBFS is replaced by "[Music]", with the same assertion [cleared, retired] = [1, false].

Checks

  • Voice journeys: voice.test.tsx, voice-barge-in.test.tsx and voice-loud-room.test.tsx pass, 125 of 125.
  • pnpm check, including the app__voice proof, is running; results will follow in a comment.
  • Not yet shown on the phone. The QA session reruns cases 2, 3 and 10b on a debug APK built from this branch.

On the Pixel's own recognizer the owner's words over Alpha were heard at -40 to -46 dBFS, below the -38 dBFS a near voice had to reach, so barge-in never fired; a television's words fell in the same band, so no loudness separates them. The level gate, its loud-room tracker and the level plumbing go; echo, filler, stray-word and no-word rules stay.
@lalalune
lalalune deployed to turbo-cache-read December 4, 2026 22:10 — with GitHub Actions Active

This branch is being deployed

1 queued deployment
turbo-cache-read — b26ed192 Deployed Dec 4, 2026 by lalalune via prepare-eliza #1667
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