Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To include a node module in an AudioWorkletProcessor, you can use the import statement to import the module like:

import * as myModule from 'my-module';

You can then use the module in your AudioWorkletProcessor like any other JavaScript module.

However, keep in mind that not all node modules may be compatible with the browser environment of AudioWorklets. Some modules may use APIs that are not available in the browser or may have dependencies that cannot be resolved. Be sure to test and verify that the module works as expected in the AudioWorklet environment.