Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. AudioWorklet

AudioWorklet

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨April 2021⁩.

Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.

TheAudioWorklet interface of theWeb 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 theAudioWorkletGlobalScope 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 ofAudioWorklet through theBaseAudioContext.audioWorklet property.

Worklet AudioWorklet

Instance properties

This interface also inherits properties defined on its parent interface,Worklet.

portRead onlyExperimental

Returns aMessagePort for custom, asynchronous communication between code in the main thread and the global scope of an audio worklet.This allows for custom messages, such as sending and receiving control data or global settings.

Instance methods

This interface inherits methods fromWorklet. TheAudioWorklet interface does not define any methods of its own.

Events

AudioWorklet has no events to which it responds.

Examples

SeeAudioWorkletNode for complete examples of custom audio node creation.

Specifications

Specification
Web Audio API
# AudioWorklet

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp