const audioCtx = new AudioContext();
const stats = audioCtx.playbackStats;
// ...
// Log average latency
console.log(stats.averageLatency);AudioContext: playbackStats property / notebook
AudioContext: playbackStats property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.