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.0.1.tar.gz (137.3 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.0.1-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (326.5 kB view details)

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

pymicro_vad-2.0.1-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (324.5 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.0.1.tar.gz.

File metadata

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

File hashes

Hashes for pymicro_vad-2.0.1.tar.gz
Algorithm Hash digest
SHA256 51d188b3d02e5612a72f1c2a190d0c183daaeaf4bb012b83e1e458b9d104db8c
MD5 f6697036fc0d687a4cf3d36084012836
BLAKE2b-256 c0acfe480b37a6b3f6af5c0953aee980162a1ed27b8052bc2447aaffafa7f70f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymicro_vad-2.0.1.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.0.1-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymicro_vad-2.0.1-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5f143eb8ced8606dcab6ac4fad96b2b51c66517a446261e092b59c792d747d67
MD5 d482dc8ba265f532e887e201b65deebe
BLAKE2b-256 67f6978aa8034b4d0b70faf0e518228357af897ffb588a894f78f7d82599d08f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymicro_vad-2.0.1-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.0.1-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pymicro_vad-2.0.1-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b9fc2876936d797c12942cb0ad53dad1fdbf3dd9ffbd747ff5abc52ef4572ee6
MD5 c7587f1f18f2143af525d8781cd452a0
BLAKE2b-256 f9c0128e859c5fcdf2a1ff18df5ebfc3850d482e9157ec824b50e834d3916b15

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymicro_vad-2.0.1-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