Real-time neural audio processing in the browser
JSBackendBase as a passthrough hook on the inference worker.ONNXRuntimeWebBackend, swapping the WASM engine for onnxruntime-web on the JS side.JSBackendBase and ships its own custom inference worker, providing the template for wrapping any JS-side runtime.JSPrePostProcessor, demonstrated by clamping the gain slider to [0, 1] from a JavaScript callback firing on every block.JSPrePostProcessor assembles each block's input as a sliding window prepended with 132 samples of past context for the convolutions to look back at.JSPrePostProcessor packs each block into a batched [BUFFER_SIZE, 1, 150] tensor of overlapping 150-sample context windows run in parallel.This site bundles third-party open-source software. See licenses for the full attribution list.