AudioWorklet

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

AudioWorklet interface of the Web 音频 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 特性。

特性

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

方法

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

Events

AudioWorklet has no events to which it responds.

范例

AudioWorkletNode for complete examples of custom audio node creation.

规范

规范 状态 Comment
Web 音频 API
The definition of 'AudioWorklet' in that specification.
工作草案 初始定义。

浏览器兼容性

更新 GitHub 上的兼容性数据
Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
AudioWorklet Chrome 66 Edge 79 Firefox 76 IE 不支持 No Opera Yes Safari 不支持 No WebView Android 66 Chrome Android 66 Firefox Android 不支持 No Opera Android Yes Safari iOS 不支持 No Samsung Internet Android 9.0

图例

完整支持
完整支持
不支持
不支持

另请参阅