Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The minimumLatency read-only property of the AudioPlaybackStats interface is a number indicating the minimum latency since the audio context was initialized or since AudioPlaybackStats.resetLatency() was last called.
A double-precision floating point number indicating the minimum latency, in seconds. Initialized to 0.
const audioCtx = new AudioContext();
const stats = audioCtx.playbackStats;
// ...
// Log minimum latency
console.log(stats.minimumLatency);See also the main AudioPlaybackStats reference page for a more in-depth example.