Skip to main content

Pre-packaged voice activity detector using silero-vad

Project description

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 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")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysilero_vad-3.3.1.tar.gz (2.4 MB view details)

Uploaded Source

File details

Details for the file pysilero_vad-3.3.1.tar.gz.

File metadata

  • Download URL: pysilero_vad-3.3.1.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pysilero_vad-3.3.1.tar.gz
Algorithm Hash digest
SHA256 3ec55bfbf752ed424baf4f99fd135435f77c86f53a3171787e1c25111a5422ae
MD5 9570d8cc3d076eb62de65a16ffc86d3b
BLAKE2b-256 e56a3d17a67bddb40415c0a4b42e7d954eb6ecd6d7514946d5d3a7d313a4d353

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysilero_vad-3.3.1.tar.gz:

Publisher: publish.yml on rhasspy/pysilero-vad

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page