6-Ping Impulse Response · Round-Trip Buffer Profiler

Microphone Loopback Latency Test & Acoustic Ping Analyzer

This microphone loopback latency test emits six high-crest acoustic clicks through your headphones or speakers and timestamps the exact sample frame when the impulse returns through your microphone. Unlike subjective eye-and-ear sliders, acoustic loopback removes human reaction variance and measures deterministic round-trip audio pipeline latency plus buffer jitter.

Honest Round-Trip Equation: Total Measured Loopback = WebAudio Output Buffer + OS Mixer & Headphone Codec + Air Travel (0.03 ms/cm) + Microphone ADC Input Buffer. Always run a wired headphone reference first so you know how many milliseconds belong to your microphone input path.
Base Latency -- ms
Output Latency -- ms
Sample Rate 48000 Hz
Measured Median -- ms
Buffer Jitter (IQR) -- ms
L/R & Polarity:
Physical Measurement Boundary: Acoustic loopback measures the full round-trip loop (headphone output path + OS/browser audio mixer + air gap + microphone input ADC buffer). Hold one earcup or earbud 1 to 2 cm from your microphone in a quiet room at 70% volume, and turn off OS noise suppression if pings are filtered out.
Ready — microphone stays off until you start a 6-ping run.
Live Microphone Input Peak Envelope Impulse Detection Threshold: -18 dBFS
Median Round-Trip -- ms
Minimum Ping -- ms
Maximum Ping -- ms
Jitter IQR -- ms
  1. Ping #1-- ms
  2. Ping #2-- ms
  3. Ping #3-- ms
  4. Ping #4-- ms
  5. Ping #5-- ms
  6. Ping #6-- ms

Latency Benchmark Tier Verdict

Run any mode or load the AirPods vs Wired sample
<20ms Wired / Gaming 2.4GHz — Studio monitoring, competitive FPS, uncalibrated rhythm play
20-60ms Low-Latency LC3/aptX-LL — Tight lip-sync, responsive action gaming, casual music
60-150ms Good Movie Lip-Sync — Typical AAC/aptX earbuds; OS players delay video to match
>150ms Noticeable Gaming Lag — Standard SBC / high-bitrate LDAC; gunfire trails behind muzzle flash
Pipeline Telemetry Reference

Hardware & WebAudio Buffer Breakdown Table

Every browser loopback ping traverses both the playback DAC chain and the capture ADC chain. Understanding what each WebAudio metric and OS subsystem contributes prevents misinterpreting input capture buffer size as headphone lag.

Audio Pipeline Stage Browser / OS Metric Typical Desktop Range Typical Mobile Range Diagnostic Notes
WebAudio Render Quantum 128 frames / sampleRate 2.67 ms @ 48 kHz 2.67 ms @ 48 kHz Fixed block size defined by the W3C Web Audio specification
Browser Internal Mixing AudioContext.baseLatency 2.7 – 10.0 ms 5.3 – 21.3 ms Buffer added by browser audio graph before OS handoff (`interactive` hint)
OS Output & Driver Report AudioContext.outputLatency 10 – 45 ms (wired) 12 – 60 ms (wired) Self-reported by OS driver; often under-reports external Bluetooth DSP
Acoustic Air Propagation Distance / 343 m/s 0.03 – 0.15 ms (1–5 cm) 0.03 – 0.15 ms (1–5 cm) Negligible at 2 cm; adds ~2.9 ms for every 1 meter of speaker distance
Microphone ADC & Capture Queue getUserMedia raw stream 12 – 35 ms 18 – 55 ms Cancels out completely when comparing two headphones on the same mic
Full Round-Trip Wired Baseline Loopback Median (Wired) 28 – 65 ms 40 – 95 ms MacBook CoreAudio often hits 28–42 ms; Windows WASAPI Shared hits 45–70 ms
Clean Impulse Capture

Acoustic Click-to-Mic Setup Checklist

Modern laptops and phones ship with aggressive AI voice isolation that treats short test clicks like keyboard clatter and erases them. Follow these four steps if pings fail to register or report erratic outliers.

  1. 01

    Turn Off OS Voice Isolation & Noise Suppression

    Our workbench requests echoCancellation: false, noiseSuppression: false, and autoGainControl: false in browser constraints, but macOS Mic Mode (Voice Isolation) or Windows Studio Effects can still strip clicks at the driver level. Set OS mic mode to Standard.

  2. 02

    Mute Direct Hardware Sidetone Monitoring

    If you use an XLR USB audio interface (Focusrite, Audient, MOTU), turn Direct Monitor off during testing so analog loopback does not feed back into your headphones.

  3. 03

    Couple the Earbud Nozzle 1 to 2 cm From the Mic

    Point the inner speaker grille of one earbud directly at your laptop or USB microphone capsule from 1 to 2 cm away without touching the housing (touching transfers mechanical vibration earlier than air waves). Keep your finger off AirPods wear sensors only if auto-ear detection pauses audio—cover the optical sensor lightly if needed.

  4. 04

    Watch Interquartile Range (IQR) Instead of Single Pings

    A door closing or fan gust can trigger one false early ping. Using the 6-ping median and IQR (75th minus 25th percentile) rejects single-trial noise while exposing real buffer underruns.

Cross-Check Your Result

Calibration Q&A

Frequently Asked Questions

Does this microphone loopback test record or upload my voice?

No. Audio samples from getUserMedia are analyzed strictly inside temporary Float32Array memory buffers in your browser tab to detect the millisecond peak of the 6 test clicks. Zero audio data is stored in localStorage, saved to disk, or transmitted over the network, and microphone hardware capture stops as soon as the run finishes.

Why does the loopback test say timeout or missed ping on my laptop?

Missed pings happen when headphone volume is too quiet to cross the -18 dBFS impulse threshold, when AirPods pause playback after being removed from your ear, or when macOS Voice Isolation / Windows Realtek AI Noise Reduction filters out short clicks. Switch OS mic mode to Standard, hold the driver 1.5 cm from the mic, and raise headphone volume to 70%.

Why is AudioContext.outputLatency blank or 0 ms in some browsers?

Firefox and certain mobile WebKit configurations restrict or omit AudioContext.outputLatency to reduce hardware fingerprinting, or return 0 when the underlying OS audio backend does not expose external Bluetooth buffer telemetry. Acoustic loopback measures real physical sound arrival regardless of whether that API field is populated.

Can I test an XLR audio interface with a patch cable instead of speakers?

Yes, if you lower line/headphone output gain carefully first to avoid clipping the preamp input. Patching headphone output 1 into line input 1 on a USB audio interface measures pure RTL (round-trip latency) across WebAudio + ASIO/CoreAudio/WASAPI buffers with sub-millisecond repeatability.

What is a healthy Jitter IQR score in the 6-ping loopback test?

Wired headphones and 2.4 GHz USB dongles normally hold an IQR under 2 to 4 ms across six pings. Standard Bluetooth earbuds typically show 4 to 12 ms of IQR jitter, while IQR values above 20 ms indicate packet retransmissions, CPU audio thread throttling, or active echo-cancellation interference.