Skip to content

Variable: PCM_WORKLET_SOURCE

const PCM_WORKLET_SOURCE: "\nclass AiuiPcmForwarder extends AudioWorkletProcessor {\n process(inputs) {\n const ch = inputs[0] && inputs[0][0];\n if (ch && ch.length) { this.port.postMessage(ch.slice(0)); }\n return true;\n }\n}\nregisterProcessor('aiui-pcm-forwarder', AiuiPcmForwarder);\n"

Defined in: aiui-intent-runtime/src/audio.ts:153

The PCM worklet module, exported so hosts that CANNOT load blob: scripts can ship it as a real file and pass its URL: MV3 extension pages' CSP (script-src 'self') rejects blob worklet modules — measured live 2026-07-13, "AbortError: Unable to load a worklet's module". The extension pins its shipped copy to this constant with a test, so the two cannot drift.