This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
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. User-supplied code is run in the AudioWorkletGlobalScope
global execution context in a separate Web Audio rendering thread along with other nodes, allowing for zero-latency audio processing.
An instance of this object can be accessed on BaseAudioContext.audioWorklet
property.
Properties
The AudioWorklet interface does not define any properties of its own.
Event handlers
None.
Methods
This interface inherits methods from Worklet
.
The AudioWorklet interface does not define any methods of its own.
Examples
See the AudioWorkletNode
page for complete examples of custom audio node creation.
Specifications
Specification | Status | Comment |
---|---|---|
Web Audio API The definition of 'AudioWorklet' in that specification. |
Working Draft | Initial definition. |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
AudioWorklet | Chrome Full support 66 | Edge ? | Firefox ? | IE ? | Opera Full support Yes | Safari ? | WebView Android Full support 66 | Chrome Android Full support 66 | Firefox Android ? | Opera Android Full support Yes | Safari iOS ? | Samsung Internet Android Full support Yes |
Legend
- Full support
- Full support
- Compatibility unknown
- Compatibility unknown
See also
AudioWorkletGlobalScope
— the global execution context of anAudioWorklet
- Web Audio API
- Using the Web Audio API