Repository navigation
feat(app): allow Custom STT to keep raw audio off Omi - #10447
Conversation
|
Thanks @LauraGPT — this is a well-structured PR. The core change is clean: Flagging for human maintainer review before merge:
No blockers found in the implementation itself. Labeled for maintainer review. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
feat(app) allow Custom STT to keep raw audio off Omi — approve only (mobile feature)
|
Thanks @LauraGPT for landing the first, backward-compatible privacy increment here. I have prepared the full I have deliberately not opened a competing PR. The implementation branch, verification evidence, known rebase limitation, and the question of one follow-up PR versus a small stacked series are documented here:
Once maintainers indicate the preferred review shape—and ideally after this approved PR merges—I will rebase the follow-up onto current |
|
@Git-on-my-level need human response. This PR now has human approval from @kodjima33, is mergeable, and its only reported gate is the product/data-flow decision. Could a maintainer confirm these two points?
The implementation still forwards transcripts/control messages and only suppresses binary audio frames on the Omi secondary socket when disabled. If those two product choices are acceptable, this approved PR should be ready for the maintainer-review label to be cleared and merged. |
|
Synced this PR with current Fresh verification on the merged tree:
GitHub now reports the PR mergeable; the prior approval remains in place. The Cubic review check is currently running on the new head. |
There was a problem hiding this comment.
All reported issues were addressed across 106 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
|
Re-reviewed on The fail-open concern raised by the Cubic P1 (disabling this setting still let raw audio reach Omi via the default-socket fallback when the device codec was unsupported by Custom STT) is resolved: The core mechanism remains clean: This is a user-facing privacy control over raw audio forwarding to Omi cloud, so the remaining gate is the human product call already on this PR: confirm the Thanks @LauraGPT — nice, well-scoped first increment. by AI on behalf of David — if you need David's attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Re-approve on new head: Custom STT keeps raw audio off Omi — feature, approve-only per policy.
|
Implementation update (exact head |
There was a problem hiding this comment.
All reported issues were addressed across 107 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
|
Static review of the key logic files (head
The ~100-file diff is dominated by l10n translations across 49 locales plus generated localization dart; the English source strings include accurate No security, supply-chain, or malicious-code concerns found. The implementation is privacy-enhancing and the layered enforcement is sound. Leaving for human maintainer review: this is a privacy-sensitive raw-audio data-handling toggle that controls what user audio reaches Omi servers, and it needs maintainer sign-off on the privacy model and the default-on behavior before merge. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
@Git-on-my-level @kodjima33 @LauraGPT — this bounded privacy increment is approved, all reported review findings were addressed, and the latest collaborator review confirms the fail-closed logic. It has now drifted into conflict with fast-moving Could a maintainer please make the product/ownership decision explicitly:
I can prepare the |
|
Re-check of the current head Root cause of the three red checks — stale base, not this change. On disposition (picking up @Dr-Amp's question): the substantive review work is done — @kodjima33 approved this feature on Note that since the head moved after @kodjima33's approval, a maintainer re-approval on the rebased head is still needed before merge (that review would also cover the exact-pin → caret pubspec change arriving via Specific human decision needed: explicit accept/decline of this privacy increment — including who owns the rebase and the final sign-off on the rebased head — which also unblocks #10431. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
There was a problem hiding this comment.
All reported issues were addressed across 111 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Signed-off-by: LauraGPT <[email protected]>
Signed-off-by: LauraGPT <[email protected]>
Drop the openAIAPIKey override (removed from EnvFields upstream) and the redundant composite_transcription_socket import. Unblocks the app analyzer ratchet on the rebased head.
6312a1c to
2497eaa
Compare
…ated Files The committed localizations were produced by a newer local Flutter whose gen-l10n emits different formatting; regenerate so the Generated Files check (Flutter 3.44.5) sees a clean tree.
What changed and why
Adds a default-on Send raw audio to Omi setting for Custom STT. When disabled, binary audio frames go only to the selected STT provider; transcripts and non-audio data used by Omi cloud features can still reach the Omi socket. If the connected device uses a codec unsupported by Custom STT, the app fails closed instead of creating the default Omi audio socket; fallback to Omi remains available only when raw forwarding is explicitly enabled.
The setting is persisted per provider, participates in the STT config identity, survives import/export, and is explained in all 49 app locales. Provider source changes restore each provider's own value.
Android Background Mode now enforces the same policy twice: Dart reconciles the effective native-streaming preference whenever STT settings or capture mode changes, and the native streamer independently checks the persisted Custom STT policy before opening or using its Omi socket. Malformed policy state fails closed. The unsupported-codec block also arms the normal keep-alive retry so transcription recovers when the blocking condition clears.
The follow-up on
6312a1cf80f1a20843ca72127333baa9cc90b147also rejects non-boolean forwarding values, re-checks the persisted policy before and during queued-frame flush after a native socket handshake, fails closed on malformed Dart preferences, and exercises an actual later recovery attempt after forwarding is re-enabled.This implements the boolean first increment proposed in #10431. A fully local mode that removes the Omi socket and cloud persistence remains outside this PR.
Refs #10431
Product invariants affected
none
How it was verified
6312a1cf80f1a20843ca72127333baa9cc90b147includes the signed review-fix commit aboved2b880efdcbaaca6e7afe430620153fb395db616, which mergesmain@971b497a56aea0229ee44798a322b483f63d4be0; both commits carry DCO sign-offs.31476665774: all stopped atflutter pub getbecause the stale branch pinnedintl 0.20.2while the moving stable SDK required^0.20.3. The PR did not introduce that pin; currentmainsupplies the SDK/constraint compatibility fix.flutter pub getpassed and leftpubspec.yamlandpubspec.lockbyte-identical.sort_child_properties_last: 1 current finding versus baseline 2).bash test.sh --reporter compactpassed all 1,306 App tests.dart run build_runner buildplusflutter gen-l10nproduced no tracked or untracked generated-code drift.CustomSttRawAudioPolicyTestpreviously passed 4/4 on parent head3d1a173; the current five-test suite and native streamer compile could not rerun locally because the designated ind-gpu8 host has no Android SDK/JDK, so platform verification remains explicitly deferred to GitHub CI.action_requiredand need a maintainer to approve the workflow runs; this is a permission gate, not a code failure.Tests
app/test/unit/custom_stt_config_test.dartcovers migration default, JSON round trip, and config identity.app/test/unit/composite_transcription_socket_test.dartcovers binary frame blocking, default compatibility, transcript forwarding, control-message forwarding, factory wiring, and the unsupported-codec fallback policy with forwarding enabled and disabled.app/test/widgets/transcription_settings_forwarding_test.dartcovers a full on-device/cloud/on-device provider round trip, restored per-provider values, the Material switch surface, and the phone-sized resource-warning dialog.app/test/providers/capture_provider_test.dartcovers fail-closed Android Background Mode policy and retry scheduling after an unsupported Custom STT codec is blocked.app/android/app/src/test/kotlin/com/friend/ios/batch/CustomSttRawAudioPolicyTest.ktcovers default Omi behavior, Custom STT opt-in/opt-out, and malformed-state fail-closed behavior.Failure class (fixes)
Failure-Class: none