vad logo

vad

ricky0123/vad

Voice activity detector for the browser

GraphCanon updated 3w · GitHub synced 3w

2.0k stars271 forksLast push 6mo TypeScript Other

Decision brief

vad provides a straightforward API for detecting speech start and end points in browser-based applications using the Web Audio API.

Good fit when

  • When you need to work within web applications that require real-time voice activity detection via simple script tags without deep integration complexity.
  • If your project focuses on TypeScript development and leverages ORT (ONNX Runtime) for computational efficiency in the browser.

Avoid when

  • In scenarios where full offline support is required, as vad depends on CDN-hosted resources for its operation.
  • For applications that require extremely low latency, since it incorporates a speech detection logic based on larger frameworks like ONNX Runtime which could introduce additional overhead.

Observed Jul 17, 2026 · Source: enrich:decision_facts

Verify the decision

Adoption

Package downloads where a registry match exists. GitHub stars (2,024) are secondary evidence.

npm downloads (30d)
44·npm downloads API·3w

Maintenance and security

Full trust report
Maintenance
Slowing (181d since push)
As of 3w
Provenance
Not a fork · Personal account
As of 3w
Security (OSV)
29 low (29 low)
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

npm install vad
npm

Similar tools

Same-category neighbours. No typed graph edges are catalogued for this tool yet.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

A voice activity detection tool that provides a simple API to detect speech start and end in web applications.

Capability facts

MCP server
No MCP server detected

Source: repo_scan · Jul 30, 2026

Languages
typescript, javascript, python

Source: github.language+package.json+pyproject.toml · Jul 30, 2026

Categories

Tags

README

Quick Start

To use the VAD via a script tag in the browser, include the following script tags:

<script src="https://cdn.jsdelivr.net/npm/onnxruntime-web@1.22.0/dist/ort.wasm.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ricky0123/vad-web@0.0.29/dist/bundle.min.js"></script>
<script>
  async function main() {
    const myvad = await vad.MicVAD.new({
      onSpeechStart: () => {
        console.log("Speech start detected")
      },
      onSpeechEnd: (audio) => {
        // do something with `audio` (Float32Array of audio samples at sample rate 16000)...
      },
      onnxWASMBasePath:
        "https://cdn.jsdelivr.net/npm/onnxruntime-web@1.22.0/dist/",
      baseAssetPath:
        "https://cdn.jsdelivr.net/npm/@ricky0123/vad-web@0.0.29/dist/",
    })
    myvad.start()
  }
  main()
</script>

Documentation for bundling the voice activity detector for the browser or using it in node or React projects can be found on vad.ricky0123.com.

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.