![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@ricky0123/vad
Advanced tools
This package aims to provide an accurate, user-friendly voice activity detector that runs in the browser. Currently, it runs Silero VAD [1] in the browser using ONNX Runtime Web.
A demo is hosted at vad-demo-script.vercel.app. The source code for the demo can be found here. A separate demo showing how to use the VAD with a bundler like webpack can be found here.
The API works as follows:
Create the VAD object with a line such as
const myvad = await vad.MicVAD.new(options)
options
can include any of the parameters defined here. It essentially consists of callbacks that run on every audio frame, whenever a speech start is detected, whenever speech ends, etc, as well as parameters that control the voice activity detection algorithm.
Start and pause the VAD object as needed with myvad.start()
and myvad.pause()
. The object starts in the paused state.
[1] Silero Team. (2021). Silero VAD: pre-trained enterprise-grade Voice Activity Detector (VAD), Number Detector and Language Classifier. GitHub, GitHub repository, https://github.com/snakers4/silero-vad, hello@silero.ai.
FAQs
Powerful, user-friendly voice activity detector (VAD) for the browser
The npm package @ricky0123/vad receives a total of 84 weekly downloads. As such, @ricky0123/vad popularity was classified as not popular.
We found that @ricky0123/vad demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.