visionOS: Microphone captures external audio accurately, but audio from Vision Pro's own speakers is significantly attenuated during simultaneous playback and recording

Hello,

I'm developing a visionOS application that uses AVAudioEngine microphone input and Accelerate-based FFT analysis to drive a real-time 3D audio visualizer.

I've encountered a significant difference in microphone capture behavior depending on whether audio is played from an external device or from the Vision Pro's own speakers.

The issue: When audio plays from an external iPhone or iPad, the Vision Pro microphone captures a detailed, dynamic audio signal and the visualization responds accurately across the frequency spectrum. When the same audio plays through Vision Pro's built-in speakers, the microphone signal is substantially weaker, particularly at higher frequencies.

I'm trying to determine whether visionOS applies additional microphone processing during simultaneous playback and recording, and whether there is a supported way to obtain a more faithful microphone signal.

Application configuration

Platform: visionOS 27
Audio category: AVAudioSession.Category.playAndRecord
Audio-session mode: .default
Input: BuiltInMic
Output: Speaker
I/O buffer duration: 10 ms
Audio capture: AVAudioEngine using a low-latency Sink Node processing path
FFT: 4096 samples with 512-sample hops

Visualization: 70 independently analyzed frequency sub-bands, covering approximately 20 Hz–20 kHz

The application analyzes the PCM samples delivered by the microphone input node.

Experiments and results

Test 1: Audio from an external iPhone

Audio plays through an iPhone's speakers while the Vision Pro microphone captures the sound.

Result: Excellent frequency response. The 70 visualization bars react dynamically across the entire spectrum, closely matching an equivalent macOS FFT visualization.

Test 2: Audio from the Vision Pro speakers

The same audio plays through Vision Pro's built-in speakers while the application captures microphone input.

Result: The visualization is noticeably less responsive, especially in the midrange and upper frequencies.

Increasing digital microphone gain before the FFT improves overall signal levels but does not fully restore the frequency balance and responsiveness observed with external playback.

Test 3: Independent Mac microphone

When audio plays from Vision Pro's speakers, a separate Mac running the equivalent FFT visualizer captures it very well.

This suggests the Vision Pro speakers are producing a usable audio signal that an external microphone can analyze.

Raw microphone recordings

I added a diagnostic WAV recorder that captures the PCM samples delivered to the FFT processing pipeline, before application-level gain, normalization, noise rejection, or visualization enhancement.

In an initial comparison:

External iPhone playback: Average microphone RMS −41.4 dBFS

Vision Pro internal playback: Average microphone RMS −60.4 dBFS

The approximately 19 dB difference was measured from 48 kHz mono WAV recordings.

More importantly, the attenuation was frequency-dependent. The 4–6 kHz and 6–20 kHz bands showed considerably greater reductions than the lowest-frequency bands.

These were exploratory recordings rather than acoustically level-matched measurements, so the exact differences should not be treated as a calibrated device frequency response.

Voice-processing diagnostics

I checked the actual AVAudioEngine.inputNode before and after starting the engine.

Both times, the results were:

isVoiceProcessingEnabled = false
isVoiceProcessingAGCEnabled = false
isVoiceProcessingBypassed = false

The active audio session reports:

Mode: AVAudioSessionModeDefault
Input: BuiltInMic
Output: Speaker
I/O: 10.00 ms

Additional observations:

.default audio-session mode produces better visualization responsiveness than .measurement.

Requesting bypassed spatial audio did not produce a noticeable improvement.

Increasing pre-FFT digital gain improves the amplitude but does not completely restore the missing audio dynamics.

Questions for Apple audio engineers

Does visionOS apply any system-level acoustic echo cancellation, speaker-reference suppression, microphone beamforming, or other signal processing when the Vision Pro speakers and microphones operate simultaneously, even when isVoiceProcessingEnabled is false?

Is there a supported AVAudioSession configuration, microphone data source, capture mode, or other API that can provide a microphone signal with minimal suppression of audio originating from the Vision Pro's own speakers?

Does the microphone array use different processing or directional characteristics for sounds originating from the headset's audio pods compared with external sound sources?

Could the .playAndRecord category or simultaneous activation of playback and recording change the signal delivered by AVAudioEngine.inputNode?

Is there a recommended architecture for a visionOS audio visualizer that needs to analyze audio while it plays through the headset, particularly when playback originates from a separate application or a WKWebView?

I understand that audio delivered by the microphone is not necessarily unprocessed hardware audio, and that the physical speaker/microphone arrangement could contribute to these differences.

I'm specifically trying to determine whether the observed behavior is expected, whether it can be configured differently, or whether it represents a limitation of simultaneous internal speaker playback and microphone capture on Vision Pro.

Any guidance from the visionOS audio engineering team would be greatly appreciated. Thank you!