Skip to content

Match Android on-device audio inference on iOS - #53

Open
techparamveer wants to merge 1 commit into
design-polishfrom
codex/ios-on-device-model
Open

techparamveer wants to merge 1 commit into
design-polishfrom
codex/ios-on-device-model

Conversation

@techparamveer

@techparamveer techparamveer commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

iOS microphone → 16 kHz → −60 dBFS silence gate
  Student S → Student M when the top-two margin is below 0.2204
  Student M → direct inference
  Measure → raw class probabilities
  Live listening → three-window smoothing and on-device personal scoring

Measure and live listening share one microphone capture. iOS keeps its uncalibrated sound levels local. Gentle alerts use the in-app UI. The iOS personal model scores sound classes without a calibrated SPL input, so a fresh profile stays below the default alert threshold. The earlier iOS port and updated Student M fixture are in #52, which targets main.

Evidence

  • Before. The iOS app on design-polish captured local sound levels. Its bundle lacked the Student models and LiteRT.
  • After. Four iOS simulator tests passed. Each model matched its 65 reference windows within 0.001 per probability. The capture analyzer returned 51 Student S windows, 13 Student M escalations, and one quiet window. Direct Student M selection passed.
  • Selected Medium in the iPhone simulator UI and ran a full Measure capture. The review named Student M and showed local dBFS. With Settings in the foreground on a second simulator, Ciúin's model time advanced by eight seconds. It stopped advancing after Stop Listening.
  • All 18 focused shared tests passed. An unsigned arm64 device build contained both models and the cascade configuration, byte for byte. Lock-screen behavior on a physical iPhone remains unverified.

Merge risk

Revertible. The runtime, microphone lifecycle, and in-app listener changes affect iOS audio capture and listening.

This branch has not been deployed

No deployments
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