Skip to content

This repo provides an addon that can perform VAD model reasoning in nodes and electric environments, based on cmake-js and Fastdeploy. Silero VAD is a pre-trained enterprise-grade Voice Activity Detector.

License

Notifications You must be signed in to change notification settings

chenqianhe/VAD-addon

Repository files navigation

English | 简体中文

VAD-addon

This project provides an addon that can perform VAD model reasoning in node and electron environments, based on cmake-js and Fastdeploy. Silero VAD is a pre-trained enterprise-grade Voice Activity Detector.

Our project supports Windows AMD64(x86_64), macOS x86_64, macOS arm64, Linux AMD64(x86_64), Linux aarch64(arm64).

Install

This project uses cmake and npm(In Windows, we need Visual Studio additionally). Go check them out if you don't have them locally installed.

git clone https://github.com/chenqianhe/VAD-addon

cd VAD-addon

npm install

In Windows

  1. You can refer to Visual Studio 2019 Create CMake project using C++ SDK for configuration.
  2. You can also use Clion to configure.
Clion configuration image image

Usgae

Default for node addon

npx gulp

Electron addon

  1. Set the configuration according to the relevant configuration of cmake-js
  2. Run
npx gulp

Use cmake-js options

The cmake-js provides some options, and you can add it directly, just like using cmake-js.

npx gulp [options]

Example(When using Clion, we usually need to appoint special cmake path)

npx gulp -c xxx/cmake

Run example in node env

node index.js

Result likes

[
 { start: '0.000000', end: '2.304000' },
 { start: '5.056000', end: '7.680000' },
 { start: '8.320001', end: '10.496000' }
]

Reference

LICENSE

MIT

About

This repo provides an addon that can perform VAD model reasoning in nodes and electric environments, based on cmake-js and Fastdeploy. Silero VAD is a pre-trained enterprise-grade Voice Activity Detector.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published