Coder Social home page Coder Social logo

wav2vad's Introduction

wav2vad

wav2vad is a command-line tool that performs voice activity detection (VAD) on WAV audio files. It utilizes the Silero VAD model and requires the ONNX runtime for inference. The tool processes the input audio file and outputs the detected voice activity occurences in JSON format.

Requirements

Installation

  1. Install ONNX Runtime:

  2. Install libsndfile:

    • You can install libsndfile using your package manager. For example, on Debian, you can use apt:
      sudo apt install libsndfile1-dev
      
  3. Download the Silero VAD Model:

    • Download the Silero VAD model from here.
  4. Build wav2vad:

    • Clone this repository:
      git clone https://github.com/eja/wav2vad.git
      
    • Navigate to the cloned directory and build the executable:
      cd wav2vad
      make
      

Usage

After building the wav2vad executable, you can use it to perform voice activity detection on WAV audio files.

Usage: ./wav2vad <path_of_the_onnx_model> <path_of_the_wav_file>

  • <path_of_the_onnx_model>: Path to the ONNX model file for voice activity detection.
  • <path_of_the_wav_file>: Path to the input WAV audio file.

The output will be in JSON format and will contain the detected voice activity time along with confidence scores.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Acknowledgements

  • This project relies on ONNX Runtime for executing the VAD model.
  • The libsndfile library is used for reading WAV audio files.
  • This project is based on the Silero VAD example available at snakers4/silero-vad.

wav2vad's People

Contributors

ubaldus avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.