py-webrtcvad wrapper for trimming speech clips
numpy, librosa and py-webrtcvad.
via pip
$ pip install pyvad
or
from github repository
$ pip install git+https://github.com/F-Tag/python-vad.git
from pyvad import vad
vact = vad(speech_data, speech_data_fs)
Please see example.ipynb
jupyter notebook.
MIT License (see LICENSE
file).
The version 0.1.0 update break backward compatibility.
The changes are as follows:
- The
hoplength
argument has been changed tohop_length
. - The
trim
returns (start_index, end_index) (return_sec
argument is abolished). - Slightly changed the method of preprocessing a waveform in
vad
. - End of support for python 2.x.
You can see the new API in the example.ipynb
.
The previous version is 0.0.8.
$ pip install pyvad==0.0.8