Usage
@deephearing/denoiser-medium
is provided as an ECMAScript module.
After successful installation via Package Manager, you will see two JavaScript files in the following path:
node_modules/@deephearing/denoiser-medium/dist/
The files in above path are:
dh-denoiser.js
dh-denoiser-processor.js
dh-denoiser-processor.js
defines AudioWorkletProcessor
, and the file is called during the initialization process through dh-denoiser.js
. The dh-denoiser-processor.js
file must be placed in a static or public directory so that it can be loaded at runtime. If it is located in a other path that is not the top level, you must specify the path of the dh-denoiser-processor.js
file when calling the init()
function.