ricky0123/vad

Voice activity detector (VAD) for the browser with a simple API

What it solves

It provides a way to detect when a user is speaking in a web browser or Node.js environment. This allows developers to trigger specific actions, such as starting a recording or sending audio segments to a server, only when actual speech is present.

How it works

The library runs the Silero VAD model using ONNX Runtime Web or ONNX Runtime Node.js, allowing the machine learning model to execute directly in the browser or on the server without needing a separate backend for the same task.

Who it’s for

Web developers building voice-enabled applications, such as voice assistants or real-time audio processing tools, who need a reliable way to detect speech activity.

Highlights

  • Accurate, user-friendly voice activity detection.
  • Runs directly in the browser or Node.js.
  • Supports React and vanilla JavaScript.
  • Provides simple callbacks for when speech starts and ends.

Related

  • Project
  • Project
  • Project
  • Project