With AirPods Pro and Active Noise Cancellation, an outward-facing microphone or microphone will detect external noise, which your AirPods Pro (1st or 2nd generation) or AirPods Max can then deal with with anti-noise, canceling the external sound before it's heard.