Browser-based wake-word detection now possible in minutes using WebAssembly
Developers can now add on-device wake-word detection to web apps using the open-source @voxrt/wake-word-browser library, which runs entirely in the browser via WebAssembly SIMD128. The solution requires no cloud API, incurs no per-request cost, and keeps all audio processing on the user's device. The full package weighs approximately 275 KB, combining a WebAssembly runtime and a pre-trained 'Hey Assistant' model, and is compatible with Chrome/Edge 91+, Firefox 89+, and Safari 16.4+. Implementation involves loading the model through npm or a CDN, capturing 16 kHz mono audio via the Web Audio API, and feeding PCM samples to the detection engine. The library's detection sensitivity is adjustable through a threshold parameter, allowing developers to balance false accepts against missed detections.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in