feat(mobile): experimental voice-processing toggle for noisy capture#7
Merged
Conversation
Add an opt-in toggle that enables Apple's voice processing (noise suppression + AGC) on the mic input node via setVoiceProcessingEnabled. Aimed at lowering the noise floor outdoors / in wind / in traffic. It's tuned for near-field single-speaker, so it can suppress a distant second speaker — hence a toggle to A/B on the same walk. Uses .playAndRecord when enabled, persists across engine restarts, and degrades to plain capture if unavailable. Default off. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Field feedback: transcription was poor while walking outdoors with the phone on a neck strap. That's a worst case — wind at chest level, distance to both speakers, street noise. Most of the loss is acoustic, but Apple's voice processing (noise suppression + AGC) is the cheapest software lever to try against the noise floor.
What
setVoiceProcessingEnabled(true)on the mic input node (Apple AEC/NS/AGC)..playAndRecordwhen on (required by the voice-processing IO unit), persists across engine restarts, and degrades to plain capture if unavailable.Why a toggle
Voice processing is tuned for near-field single-speaker, so it can suppress a distant second speaker. On/off needs to be A/B'd in the same real-world setting (e.g. the same walk), so it's an explicit toggle rather than always-on.
Not a wind silver bullet — iOS has no public wind-noise API. If both states are still poor, the realistic paths are a worn mic (AirPods) or record-now/transcribe-later with Whisper.
Verification
Mobile simulator build succeeds. Effect is only observable on device in a noisy setting.
🤖 Generated with Claude Code