W3cubDocs

/Web APIs

AudioWorklet

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The AudioWorklet interface of the Web Audio API is used to supply custom audio processing scripts that execute in a separate thread to provide very low latency audio processing.

The worklet's code is run in the AudioWorkletGlobalScope global execution context, using a separate Web Audio thread which is shared by the worklet and other audio nodes.

Access the audio context's instance of AudioWorklet through the BaseAudioContext.audioWorklet property.

Worklet AudioWorklet

Instance properties

The AudioWorklet interface does not define any properties of its own, but does inherit properties of Worklet.

Instance methods

This interface inherits methods from Worklet. The AudioWorklet interface does not define any methods of its own.

Events

AudioWorklet has no events to which it responds.

Examples

See AudioWorkletNode for complete examples of custom audio node creation.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
AudioWorklet 66 79 76 No 53 14.1 66 66 79 47 14.5 9.0

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/AudioWorklet