Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 926 Bytes

File metadata and controls

43 lines (29 loc) · 926 Bytes

VAD algorithm implemented using ALSA library in C programming language

Voice Activity Detection (VAD) algorithm made based on Moattar and Homayounpour's publication A simple but efficient real-time voice activity detection algorithm.

Code is written in C language using:

  • ALSA (for sound processing)
  • pthreads (for multithreading)

Building

NOTE

Built and tested with gcc-13 using c23 standard.

Make sure to install all needed dependencies:

sudo apt install cmake ninja libasound2-dev

Build using CMakePreset and CMakeTools extension or by hand:

mkdir build && cd build
cmake ..
cd ..
cmake --build build/

and run the executable from the CMakePreset build directory:

./build/release/vad

or your own:

./build/vad