MyGit

v3.0

snakers4/silero-vad

版本发布时间: 2021-12-07 20:17:33

snakers4/silero-vad最新发布版本:v5.1(2024-07-09 21:18:46)

Main changes

Migration

Please see the new examples.

New get_speech_timestamps is a simplified and unified version of the old deprecated get_speech_ts or get_speech_ts_adaptive methods.

speech_timestamps = get_speech_timestamps(wav, model, sampling_rate=16000)

New VADIterator class serves as an example for streaming tasks instead of old deprecated VADiterator and VADiteratorAdaptive.

vad_iterator = VADIterator(model)
window_size_samples = 1536

for i in range(0, len(wav), window_size_samples):
   speech_dict = vad_iterator(wav[i: i+ window_size_samples], return_seconds=True)
   if speech_dict:
       print(speech_dict, end=' ')
vad_iterator.reset_states()

相关地址:原始地址 下载(tar) 下载(zip)

查看:2021-12-07发行的版本