Secure contextThis 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.
Properties
The AudioWorklet
interface does not define any properties of its own, but does inherit properties of Worklet
.
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
Specification | Status | Comment |
Web Audio APIThe definition of 'AudioWorklet' in that specification. | Working Draft | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
AudioWorklet
|
Chrome
Full support 66 |
Edge
Full support 79 |
Firefox
Full support 76 |
IE
No support No |
Opera
Full support Yes |
Safari
No support No |
WebView Android
Full support 66 |
Chrome Android
Full support 66 |
Firefox Android
Full support 79 |
Opera Android
Full support Yes |
Safari iOS
No support No |
Samsung Internet Android
Full support 9.0 |
Legend
- Full support
- Full support
- No support
- No support
See also
AudioWorkletGlobalScope
— the global execution context of anAudioWorklet
- Web Audio API
- Using the Web Audio API
AudioWorklet by Mozilla Contributors is licensed under CC-BY-SA 2.5.