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.0.tar.gz (2.4 MB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pysilero_vad-3.3.0.tar.gz
Algorithm Hash digest
SHA256 b9f2a423a137e9bc6d5a0e638ca76e1f750baa3a1eed60153995d1c280b1316f
MD5 9f31cc367f91c378d68291d10cf29beb
BLAKE2b-256 d6f59be84ec8bcbe77d798a86a5fde518d257bd997a2465c8a4704241094a495

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysilero_vad-3.3.0.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