English | 简体中文
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).
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
- You can refer to Visual Studio 2019 Create CMake project using C++ SDK for configuration.
- You can also use Clion to configure.
npx gulp
- Set the configuration according to the relevant configuration of cmake-js
- Run
npx gulp
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
node index.js
Result likes
[ { start: '0.000000', end: '2.304000' }, { start: '5.056000', end: '7.680000' }, { start: '8.320001', end: '10.496000' } ]