Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 374 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 374 Bytes

pySilero VAD

A pre-packaged voice activity detector using silero-vad.

pip install pysilero-vad
from pysilero_vad import SileroVoiceActivityDetector

vad = SileroVoiceActivityDetector()

# Audio must be 16Khz, 16-bit mono PCM
if vad(audio_bytes) >= 0.5:
    print("Speech")
else:
    print("Silence")