Since March 2025, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
The outputLatency read-only property of the AudioContext Interface provides an estimation of the output latency of the current audio context.
This is the time, in seconds, between the browser passing an audio buffer out of an audio graph over to the host system's audio subsystem to play, and the time at which the first sample in the buffer is actually processed by the audio output device.
It varies depending on the platform and the available hardware.
A double representing the output latency in seconds.
const audioCtx = new AudioContext(); console.log(audioCtx.outputLatency);
| Specification |
|---|
| Web Audio API> # dom-audiocontext-outputlatency> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
outputLatency |
102 | 102 | 70 | 88 | 18.4 | 102 | 79 | 70 | 18.4 | 19.0 | 102 | 18.4 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/outputLatency