coderef

OfflineAudioContextBaseline · Widely available

The OfflineAudioContext API represents an audio processing graph that writes to an AudioBuffer instead of an output device.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Apr 26, 2021. Widely available since Oct 26, 2023.

Browser support

DesktopChrome
1–34Not supported
35+Supportedsince May 20, 2014
Current: 155
Edge
12+Supportedsince Jul 29, 2015
Current: 154
Firefox
1–24Not supported
25+Supportedsince Oct 29, 2013
Current: 157
Safari
1–14Not supported
14.1+Supportedsince Apr 26, 2021
Current: 27
MobileChrome Android
18–34Not supported
35+Supportedsince May 20, 2014
Current: 155
Firefox Android
4–24Not supported
25+Supportedsince Oct 29, 2013
Current: 157
Safari iOS
1–14Not supported
14.5+Supportedsince Apr 26, 2021
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: OfflineAudioCompletionEvent.

Feature detection

JS · check before using
if ("OfflineAudioContext" in globalThis) {
  // OfflineAudioContext is available
} else {
  // load a polyfill or use a fallback
}

Sub-features

Support for each part of the feature (12). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
OfflineAudioCompletionEvent141225618256
OfflineAudioCompletionEvent.OfflineAudioCompletionEvent57795314575314
OfflineAudioCompletionEvent.renderedBuffer141225618256
OfflineAudioContext35122514.1352514.5
OfflineAudioContext.OfflineAudioContext35122514.1352514.5
OfflineAudioContext.OfflineAudioContext.options_parameter62795714.1625714.5
OfflineAudioContext.complete_event35122514.1352514.5
OfflineAudioContext.length51144914.1514914.5
OfflineAudioContext.resume4114✕14.141✕14.5
OfflineAudioContext.startRendering35122514.1352514.5
OfflineAudioContext.startRendering.returns_promise42≤183714.1423714.5
OfflineAudioContext.suspend4114✕14.141✕14.5