Skip to content

jsvir/vad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An official implementation of the ICASSP 2023 paper: SG-VAD: Stochastic Gates Based Speech Activity Detection

UPDATES:

2024-01-03: removed hard coded dependency on 36 labels exactly. Now you can defind any number of labels you want and the code should support it.

Evaluation results (published checkpoint)

AVA-speech test

  • EER=10.40%
  • TPR@FPR=0.315 is 0.96
  • ROCAUC=0.95

HAVIC test

  • EER=23.29%
  • TPR@FPR=0.315 is 0.91
  • ROCAUC=0.83

Training

In order to train a new model you need to prepare the next dataset: 1. The manifest file with noise audio files paths (the same duration as the audios with words), the label should be "background" 2. The manifest file with spoken words file paths, each word should be labeled with one category

Please note that, as described in the paper, the main VAD model is trained as mask/filter as presented in the next schema:

Once the training is finished, the final model architecture is:

  1. Prepare your dataset in manifest format supported by NeMo
  2. Update config file with your paths and hyper-params
  3. Install NeMo requirements
  4. Run train.py script.

Inference:

  1. We publish a pre-trained Pytorch checkpoint (sgvad.pth)
  2. To use the published checkpoint as-is you need to calibrate the threshold for model output. All values under the threshold are predicted as Non-speech.
  3. The default value for the threshold is 3.5, but it may be too aggressive for your application.
  4. To try it on test audios run python sgvad.py

Aknowledgements:

We thank NeMo team for their great open source repo.

Citation:

@inproceedings{svirsky2023sg,
  title={SG-VAD: Stochastic Gates Based Speech Activity Detection},
  author={Svirsky, Jonathan and Lindenbaum, Ofir},
  booktitle={ICASSP 2023-2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)},
  pages={1--5},
  year={2023},
  organization={IEEE}
}

About

An official implementation of the ICASSP 2023 paper: SG-VAD: Stochastic Gates Based Speech Activity Detection

Resources

License

Stars

Watchers

Forks

Languages