Skip to content

Require direct Core Audio and reduce first-PCM latency - #777

Merged
grohith327 merged 5 commits into
B/audio-fix-1.6.7-basefrom
B/audio-fix-1.6.7
Aug 5, 2026
Merged

grohith327 merged 5 commits into
B/audio-fix-1.6.7-basefrom
B/audio-fix-1.6.7

Conversation

@altic-dev

@altic-dev altic-dev commented Aug 4, 2026 •

Copy link
Copy Markdown
Owner

Description

Makes direct Core Audio the single dictation capture path and removes avoidable startup serialization. This keeps the crash/device-lifecycle protections from #749 while reducing hotkey-to-first-real-PCM latency without delaying or dropping opening audio.

Type of Change

  • 🐞 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 🧹 Chore
  • 📝 Documentation update

Related Issue or Discussion

Depends on #749.

Testing

  • Tested on Intel Mac
  • Tested on Apple Silicon Mac
  • Tested on macOS version: 27.0 beta
  • Ran linter locally: swiftlint --strict --config .swiftlint.yml Sources
  • Ran formatter locally: swiftformat --config .swiftformat Sources
  • Ran tests locally: 171/171 passed

Measured the final installed commit over 10 fresh-launch recording starts: 88 ms median from ASR start to first real PCM, 78–94 ms range, 10/10 ready, 10/10 below 100 ms.

Private Fluid Intelligence app build and installation succeeded. The development build uses the local unverified bridge override because the private bridge manifest targets a different FluidVoice commit.

Screenshots / Video

  • No UI/visual changes; screenshots/video are not applicable.

Notes

B/audio-fix-1.6.7-base mirrors the exact tip of #749 because #749 originates from a fork and cannot be selected as a GitHub base branch. After #749 merges, retarget this PR to main and remove the temporary base branch.

Invariant: do not introduce an artificial recording delay or discard initial PCM; first-word capture latency is the primary UX constraint.

@altic-dev altic-dev mentioned this pull request Aug 4, 2026
7 of 12 tasks
@greptile-apps

greptile-apps Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

Greptile Summary

This PR makes direct Core Audio the sole dictation capture backend and reduces startup serialization before first PCM.

  • Replaces actor-isolated readiness tracking with lock-based synchronous signaling.
  • Avoids retirement-queue hops when no audio-engine release is pending.
  • Removes the legacy capture preference and its settings UI.
  • Updates direct-capture readiness and retirement-drain tests.

Confidence Score: 5/5

The PR appears safe to merge because no eligible blocking failure or outstanding prior finding remains.

No blocking failure remains.

Reviews (2): Last reviewed commit: "fix(audio): preserve pre-registration ca..." | Re-trigger Greptile

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4ba7589564

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@grohith327
grohith327 merged commit c621d5d into B/audio-fix-1.6.7-base Aug 5, 2026
3 checks passed
altic-dev added a commit that referenced this pull request Aug 5, 2026
* fix(audio): require direct Core Audio capture

* perf(audio): skip idle engine retirement barriers

* perf(audio): remove cold readiness actor hop

* fix(audio): close readiness cancellation race

* fix(audio): preserve pre-registration cancellation
altic-dev added a commit that referenced this pull request Aug 5, 2026
Consolidates the direct Core Audio, microphone-selection migration, and media-pause lifecycle fixes from #777, #778, and #779. Builds on the separately merged #749 contribution.
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.

2 participants