BaseAudioContext.audioWorklet

Secure context

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

The audioWorklet read-only property of the BaseAudioContext interface returns an instance of AudioWorklet that can be used for adding AudioWorkletProcessor-derived classes which implement custom audio processing.

Syntax

baseAudioContextInstance.audioWorklet;

Value

An AudioWorklet instance.

Examples

For a complete example demonstrating user-defined audio processing, see the AudioWorkletNode page.

Specifications

Specification Status Comment
Web Audio API
The definition of 'audioWorklet' in that specification.
Working Draft Initial definition.

Browser compatibility

BCD tables only load in the browser

See also