@workspaces-team/waker-vad
v0.1.0-alpha.0
Published
Browser-side VAD runtime assets and Vite integration for Waker.
Maintainers
Readme
@workspaces-team/waker-vad
Browser-side VAD runtime assets for Waker.
This package carries the public VAD payload separately from @workspaces-team/waker-web:
- Silero VAD weights
- VAD WASM binary and JS glue
- Vite runtime asset plugin
Website: https://waker.live
Issues: https://github.com/workspaces-team/waker/issues
Why use it:
- keep speech activity detection as a standalone browser asset package
- ship smaller detection bundles when an app needs VAD and wake logic separately
- mount the VAD runtime in Vite without pulling wake-specific code into the same package
Install
npm install @workspaces-team/waker-vadFor Vite projects:
npm install @workspaces-team/waker-vad viteRuntime Assets
The generated payload under runtime/vad/* is emitted during prepack / npm publish and is not
committed to git.
The published runtime includes:
runtime/vad/vad_wasm.jsruntime/vad/vad_wasm_bg.wasmruntime/vad/silero_vad_16k.binruntime/vad/silero_vad_16k_manifest.json
Vite Integration
import { defineConfig } from "vite";
import { wakerVadRuntimeAssetsPlugin } from "@workspaces-team/waker-vad/vite";
export default defineConfig({
plugins: [wakerVadRuntimeAssetsPlugin()],
});The default runtime mount base is:
/waker-vad/Asset URLs
import {
getBundledWakerVadManifestUrl,
getBundledWakerVadWeightsUrl,
getBundledWakerVadWasmBinaryUrl,
getBundledWakerVadWasmModuleUrl,
} from "@workspaces-team/waker-vad";Maintainer Refresh Flow
pnpm install
pnpm run sync:vad-wasm:source
pnpm --filter @workspaces-team/waker-vad run sync:runtime
npm pack --dry-run