Metadata-Version: 2.4
Name: pysilero_vad
Version: 2.1.0
Summary: Pre-packaged voice activity detector using silero-vad
Author-email: Michael Hansen <mike@rhasspy.org>
License: MIT
Project-URL: Source Code, http://github.com/rhasspy/pysilero-vad
Keywords: voice,activity,vad
Platform: any
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Text Processing :: Linguistic
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.8.0
Description-Content-Type: text/markdown
License-File: LICENSE.md
Requires-Dist: onnxruntime<2,>=1.18.0
Requires-Dist: numpy
Dynamic: license-file

# pySilero VAD

A pre-packaged voice activity detector using [silero-vad](https://github.com/snakers4/silero-vad).

``` sh
pip install pysilero-vad
```

``` python
from pysilero_vad import SileroVoiceActivityDetector

vad = SileroVoiceActivityDetector()

# Audio must be 16Khz, 16-bit mono PCM with correct chunk size
# See also: vad.chunk_samples()
assert len(audio_bytes) == vad.chunk_bytes()

if vad(audio_bytes) >= 0.5:
    print("Speech")
else:
    print("Silence")
```

