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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51d188b3d02e5612a72f1c2a190d0c183daaeaf4bb012b83e1e458b9d104db8c
|
|
| MD5 |
f6697036fc0d687a4cf3d36084012836
|
|
| BLAKE2b-256 |
c0acfe480b37a6b3f6af5c0953aee980162a1ed27b8052bc2447aaffafa7f70f
|
Provenance
The following attestation bundles were made for pymicro_vad-2.0.1.tar.gz:
Publisher:
publish.yml on rhasspy/pymicro-vad
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymicro_vad-2.0.1.tar.gz -
Subject digest:
51d188b3d02e5612a72f1c2a190d0c183daaeaf4bb012b83e1e458b9d104db8c - Sigstore transparency entry: 767845527
- Sigstore integration time:
-
Permalink:
rhasspy/pymicro-vad@b9e5ed6dd0555c1168000bacbfb177489a49823a -
Branch / Tag:
refs/tags/v2.0.1 - Owner: https://github.com/rhasspy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b9e5ed6dd0555c1168000bacbfb177489a49823a -
Trigger Event:
push
-
Statement type:
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
- Download URL: pymicro_vad-2.0.1-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 326.5 kB
- Tags: CPython 3.9+, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f143eb8ced8606dcab6ac4fad96b2b51c66517a446261e092b59c792d747d67
|
|
| MD5 |
d482dc8ba265f532e887e201b65deebe
|
|
| BLAKE2b-256 |
67f6978aa8034b4d0b70faf0e518228357af897ffb588a894f78f7d82599d08f
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymicro_vad-2.0.1-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
5f143eb8ced8606dcab6ac4fad96b2b51c66517a446261e092b59c792d747d67 - Sigstore transparency entry: 767845531
- Sigstore integration time:
-
Permalink:
rhasspy/pymicro-vad@b9e5ed6dd0555c1168000bacbfb177489a49823a -
Branch / Tag:
refs/tags/v2.0.1 - Owner: https://github.com/rhasspy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b9e5ed6dd0555c1168000bacbfb177489a49823a -
Trigger Event:
push
-
Statement type:
File details
Details for the file pymicro_vad-2.0.1-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.
File metadata
- Download URL: pymicro_vad-2.0.1-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 324.5 kB
- Tags: CPython 3.9+, manylinux: glibc 2.27+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9fc2876936d797c12942cb0ad53dad1fdbf3dd9ffbd747ff5abc52ef4572ee6
|
|
| MD5 |
c7587f1f18f2143af525d8781cd452a0
|
|
| BLAKE2b-256 |
f9c0128e859c5fcdf2a1ff18df5ebfc3850d482e9157ec824b50e834d3916b15
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymicro_vad-2.0.1-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl -
Subject digest:
b9fc2876936d797c12942cb0ad53dad1fdbf3dd9ffbd747ff5abc52ef4572ee6 - Sigstore transparency entry: 767845535
- Sigstore integration time:
-
Permalink:
rhasspy/pymicro-vad@b9e5ed6dd0555c1168000bacbfb177489a49823a -
Branch / Tag:
refs/tags/v2.0.1 - Owner: https://github.com/rhasspy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b9e5ed6dd0555c1168000bacbfb177489a49823a -
Trigger Event:
push
-
Statement type: