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_vad2

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():
    assert len(audio) == 160 * 2  # 160 samples
    speech_prob = vad.Process10ms(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_vad2-1.0.2.tar.gz (136.1 kB view details)

Uploaded Source

Built Distributions

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

pymicro_vad2-1.0.2-cp313-cp313-win_amd64.whl (140.4 kB view details)

Uploaded CPython 3.13Windows x86-64

pymicro_vad2-1.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (207.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

pymicro_vad2-1.0.2-cp312-cp312-win_amd64.whl (140.4 kB view details)

Uploaded CPython 3.12Windows x86-64

pymicro_vad2-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (207.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

pymicro_vad2-1.0.2-cp311-cp311-win_amd64.whl (140.1 kB view details)

Uploaded CPython 3.11Windows x86-64

pymicro_vad2-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (207.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pymicro_vad2-1.0.2-cp310-cp310-win_amd64.whl (138.6 kB view details)

Uploaded CPython 3.10Windows x86-64

pymicro_vad2-1.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (205.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pymicro_vad2-1.0.2-cp39-cp39-win_amd64.whl (138.2 kB view details)

Uploaded CPython 3.9Windows x86-64

pymicro_vad2-1.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (205.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pymicro_vad2-1.0.2-cp38-cp38-win_amd64.whl (138.6 kB view details)

Uploaded CPython 3.8Windows x86-64

pymicro_vad2-1.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (205.4 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

pymicro_vad2-1.0.2-cp37-cp37m-win_amd64.whl (139.1 kB view details)

Uploaded CPython 3.7mWindows x86-64

pymicro_vad2-1.0.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (207.2 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

File details

Details for the file pymicro_vad2-1.0.2.tar.gz.

File metadata

  • Download URL: pymicro_vad2-1.0.2.tar.gz
  • Upload date:
  • Size: 136.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pymicro_vad2-1.0.2.tar.gz
Algorithm Hash digest
SHA256 37937b26af823d8b6639b4860b806cdc5826067d455c3ee1be41124efb4ffabc
MD5 1184a65ea8c87b46fbb886c479612892
BLAKE2b-256 486027f882011b5c2c221f79abce9b5ff21746311a5a709e20d73105f80c5631

See more details on using hashes here.

File details

Details for the file pymicro_vad2-1.0.2-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for pymicro_vad2-1.0.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 86b0a0bdad54a7f788bed2644113df48cfe8e0d9720ce5a319228493b7132e1b
MD5 881c996e3487d72cbd47dc303cf0a957
BLAKE2b-256 153f7b43ff950608c027bd597702355b3e3c68b54dad17e4012242dce8d202b9

See more details on using hashes here.

File details

Details for the file pymicro_vad2-1.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pymicro_vad2-1.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ef3a4321eb247affe05d414078a9af87012eb55df1afdf438c2915bbfa51917f
MD5 9299e62a30902e4b187a660b7f7bbae0
BLAKE2b-256 fdadb9b95c5d15302f6a33695f389f973ca853306aa7bf0b8effb5ea21815ed1

See more details on using hashes here.

File details

Details for the file pymicro_vad2-1.0.2-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pymicro_vad2-1.0.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3367ac740a4003da60c35e2ca7e61e07a6e3e2f036f56ac0a084ad344bca1682
MD5 0e0bdd1a51970896a2020feee136f897
BLAKE2b-256 58b39a6fe6dcd4cf05dfd62d1b18125bc3655afbe887763834f65134deb9cdca

See more details on using hashes here.

File details

Details for the file pymicro_vad2-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pymicro_vad2-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 20dad3e2e7ab03f1b218fa70640a662997b47cc973156d33b85d822c2749ba8d
MD5 0e4ede693fd4be50078027f4e0041f3e
BLAKE2b-256 f56943922f3d8c22dc796a0a950182e9af22cb2dbe34e2cb10060a9cbab7bd76

See more details on using hashes here.

File details

Details for the file pymicro_vad2-1.0.2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pymicro_vad2-1.0.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f1aeb27f53039157f74d3a39b018483a1815af57c4f6e889b3239a0657ef02a4
MD5 546b5c0cbdb2d840c4b623cb29e5ddd0
BLAKE2b-256 aaef0775378370be7c1cb224e4b58804a073eb5739f9f6b87844af7394a1cb03

See more details on using hashes here.

File details

Details for the file pymicro_vad2-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pymicro_vad2-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5491424d2ee97f947342bf2def4043b1c6365e5ecfb6eebe1e837a3f324f447d
MD5 76b8863e1a9377d50651c7bc04c5125a
BLAKE2b-256 09a203c952b5a8af605c6967c48fdc81fd480bfba34ce2cd599f01f3a49692ee

See more details on using hashes here.

File details

Details for the file pymicro_vad2-1.0.2-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pymicro_vad2-1.0.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d503a73208ca8e61a6fbc86cac98c5159e68d1256b0106ef8bca1bdd96f4780c
MD5 2562fac8e6c42fadeccbe4aa2b7b3bd7
BLAKE2b-256 67af17250e056a2d49fba6e835fc79f56be24c44de69ce473c9fc7c3f556212e

See more details on using hashes here.

File details

Details for the file pymicro_vad2-1.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pymicro_vad2-1.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 09e1be9ba5e3af212ec310ff90e042c0c06a382c802891dae70682aacb9b98a1
MD5 fab79de71a571cb4c3268162eca85ac5
BLAKE2b-256 6342afdbaf41ee91616a5e99c5d067348f3041e1896a63ee812fddb806a45c34

See more details on using hashes here.

File details

Details for the file pymicro_vad2-1.0.2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pymicro_vad2-1.0.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 138.2 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pymicro_vad2-1.0.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f983ff1a345069a0f8ac91618546730ec29f7f7e42c6b587e90408381f837b9a
MD5 df398bab8f50abd9b7b63ebd454e227f
BLAKE2b-256 048f65c12c4e337c6e4b306cf156cb2cb03feec45fb48a5bef4534cb1cc3ff38

See more details on using hashes here.

File details

Details for the file pymicro_vad2-1.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pymicro_vad2-1.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f8e66f3b4d5ddcbcdb8a4d3748834f3c89433b31a50399c727d8a1164c344c03
MD5 777ab56d7e2ee0cb30752baceba17efb
BLAKE2b-256 bdb28e4c9d3f6e4308b277676478927366df5c782bb676387187d09ad19f2e3b

See more details on using hashes here.

File details

Details for the file pymicro_vad2-1.0.2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pymicro_vad2-1.0.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 138.6 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pymicro_vad2-1.0.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 aeca20e9ea45f0abc1eac21905e2c47b1f8f402ad4db7f89bfb84df5a42f2585
MD5 4bb3856c94bab788e1f83d389aeed4b9
BLAKE2b-256 e8bfda112bbf4ef8314b588c1f1e7e5e28276cd3c122644bb6907423eaf60b17

See more details on using hashes here.

File details

Details for the file pymicro_vad2-1.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pymicro_vad2-1.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 02a02bd792b0f2286a27d755daff1e5a15c9899cbd8e42ad141b112fbd177338
MD5 5ed4c52d5936c4d5bba42e42e381b931
BLAKE2b-256 5aff26458c39227fddf93a20dd7f305bd27504afc760af01dcd9274744523fa4

See more details on using hashes here.

File details

Details for the file pymicro_vad2-1.0.2-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for pymicro_vad2-1.0.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 fc0cf983e556865b30fca86ffd6a61b6173579e898045720aa4d01c40ae6b6ab
MD5 a1875f91499c946d03ee5586854a6f14
BLAKE2b-256 ea7e78dd93142f2bc99fb9e81dedd227c597f9252d888bc5809cb156669b7f54

See more details on using hashes here.

File details

Details for the file pymicro_vad2-1.0.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pymicro_vad2-1.0.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d412fdc666358cd937d7661ef6c5c855add77e2abf8dee3f227a8bd2914c6cc7
MD5 c4f726d2edfb099c9b6b75bd3e51c805
BLAKE2b-256 d3488ee18096e8d350f85dd94d37691db45bd51759151d389540d0b7165d525c

See more details on using hashes here.

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