This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The baseLatency read-only property of the AudioContext interface returns a double that represents the number of seconds of processing latency incurred by the AudioContext passing the audio from the AudioDestinationNode to the audio subsystem.

You can request a certain latency during construction time with the latencyHint option but the browser may ignore the option.


var baseLatency = audioCtx.baseLatency;


A double representing the base latency in seconds.


//default latency ("interactive")
const audioCtx1 = new AudioContext();

//higher latency ("playback")
const audioCtx2 = new AudioContext({ latencyHint: 'playback' });


Specification Status Comment
Web Audio API
The definition of 'baseLatency' in that specification.
Working Draft Initial definition.

Browser Compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support58 ? No No45 No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support5858 ? No45 No No

Document Tags and Contributors

Contributors to this page: thenoelman, Jedipedia, chrisdavidmills, fscholz, jpmedley
Last updated by: thenoelman,