Skip to main content

Self-contained voice activity detector

Project description

microVAD

Self-contained voice activity detector (VAD) that uses the machine learning architecture from microWakeWord.

Installation

pip install pymicro-vad

Usage

from pymicro_vad import MicroVad

vad = MicroVad()
threshold = 0.5

# Process 10ms chunks of 16-bit mono PCM @16Khz
while audio := get_10ms_of_audio():  # you define this
    assert len(audio) == 160 * 2  # 160 samples
    speech_prob = vad.process_10ms(audio)
    if speech_prob < 0:
        print("Need more audio")
    elif speech_prob > threshold:
        print("Speech")
    else:
        print("Silence")

Building

Ensure you have python3-dev and build-essential installed.

Run script/setup to create a virtual environment, then script/build to build the extension locally.

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

pymicro_vad-2.1.0.tar.gz (137.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pymicro_vad-2.1.0-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (96.8 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pymicro_vad-2.1.0-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (93.4 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

File details

Details for the file pymicro_vad-2.1.0.tar.gz.

File metadata

  • Download URL: pymicro_vad-2.1.0.tar.gz
  • Upload date:
  • Size: 137.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pymicro_vad-2.1.0.tar.gz
Algorithm Hash digest
SHA256 df954c56227f8696cf0553bd61df4aa583c914ec5c49a14682c9472130ab1a79
MD5 f791e33b89acb920ef0dbb74193e5bf7
BLAKE2b-256 6de3cf037e7b8a42bdc7d231d9cb363789538871fc000c242b0308691216dd23

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymicro_vad-2.1.0.tar.gz:

Publisher: publish.yml on rhasspy/pymicro-vad

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

File details

Details for the file pymicro_vad-2.1.0-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymicro_vad-2.1.0-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a99894b0eb58e713aceff2503ba371e3816801a30b3c60443bd39d22b8699e64
MD5 6047fe064c2ffdb694afbeb9b733486b
BLAKE2b-256 0a2acea4a6be9ade4c9ac3cde65a4a8a7d7b5d789267c3ec69b54316323b5e1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymicro_vad-2.1.0-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yml on rhasspy/pymicro-vad

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

File details

Details for the file pymicro_vad-2.1.0-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pymicro_vad-2.1.0-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 873ebdf97de6fed7ed30ec815b00b21e4b15a72e64b70fbe9c133571646d0e0c
MD5 c9ba5827ac04d6a1cac0230c98eedfef
BLAKE2b-256 b4720b5e5e1b664ce0a20594a796bb8175227661412b853d8f8a57cd4d7f627f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymicro_vad-2.1.0-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl:

Publisher: publish.yml on rhasspy/pymicro-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