Skip to content

Variable: MIC_WORKLET_SOURCE

const MIC_WORKLET_SOURCE: "\nclass AiuiSttPcmForwarder 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-stt-pcm-forwarder', AiuiSttPcmForwarder);\n"

Defined in: mic/index.ts:31

The AudioWorklet module source: forwards each mono input quantum to the main thread. Exported so hosts that cannot load blob: scripts (MV3 CSP) can ship it as a real file and pass its URL.