Voice activity detection (VAD) library, based on WebRTC's VAD engine
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
This is a fork of the VAD engine that is part of the WebRTC Native Code package (https://webrtc.org/native-code/), for use as a standalone library independent from the rest of the WebRTC code. There are currently no changes in functionality.
libfvad uses autoconf/automake and can be build and installed with the usual:
./configure make sudo make install
autoreconf -ito create the missing configure script (this requires autoconf, libtool and pkg-config; e.g. run
sudo apt install autoconf libtool pkg-configon Debian/Ubuntu first).
./configure --enable-examples. This requires libsndfile (http://www.mega-nerd.com/libsndfile/, e.g.
apt install libsndfile1-dev).
The API is documented in the
include/fvad.hheader file. See also
Recommended CFLAGS to turn on warnings:
-std=c11 -Wall -Wextra -Wpedantic. Tests can be run with
This library largely consists of parts of the WebRTC Native Code package, the repository of which can be found at https://chromium.googlesource.com/external/webrtc:
webrtc/common_audio/vad/has been moved to
webrtc/common_audio/signal_processinghave been moved to
src/signal_processing. Parts of this signal processing library not needed by the VAD engine have been removed. Also, some platform-specific assembly code has been removed for now, for easier maintainability.
It is intended that future changes and fixes in the WebRTC Native Code package will also be be merged into libfvad.
To help with this, the libfvad git repository has an
upstream-importbranch containing the required subset of the WebRTC Native Code package's files, and an
upstream-renamedbranch which also contains these unmodified files, but moved/renamed to the libfvad directory structure.
tools/import.shscript is intended to be run in the
upstream-importbranch and imports changes from a local clone of the WebRTC Native Code package git repository; it reads
tools/import-pathswhich contains the list of files to import, and reads and updates
tools/import-commitwhich contains the most recent imported commit hash of the source repository.
After this import, the changes can be merged first into the
upstream-renamedbranch and then into the
masterbranch. The intermediate step is necessary because git merge would treat files that were both renamed and heavily changed as new files.