Metadata-Version: 2.4
Name: pysilero-vad
Version: 3.2.0
Summary: Pre-packaged voice activity detector using silero-vad
Home-page: http://github.com/rhasspy/pysilero-vad
Author: Michael Hansen
Author-email: mike@rhasspy.org
License: MIT
Keywords: voice,activity,silero,vad
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.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.9
Description-Content-Type: text/markdown
License-File: LICENSE.md
Provides-Extra: dev
Requires-Dist: black; extra == "dev"
Requires-Dist: flake8; extra == "dev"
Requires-Dist: isort; extra == "dev"
Requires-Dist: mypy; extra == "dev"
Requires-Dist: pylint; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: build; extra == "dev"
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")
```

