pymicro-vad


Namepymicro-vad JSON
Version 2.0.0 PyPI version JSON
download
home_pagehttps://github.com/rhasspy/pymicro-vad
SummarySelf-contained voice activity detector
upload_time2025-10-07 20:48:00
maintainerNone
docs_urlNone
authorMichael Hansen
requires_python>=3.9
licenseApache
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # microVAD

Self-contained voice activity detector (VAD) that uses the machine learning architecture from [microWakeWord](https://github.com/kahrendt/microWakeWord/).


## Installation

``` sh
pip install pymicro-vad
```


## Usage

``` python
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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/rhasspy/pymicro-vad",
    "name": "pymicro-vad",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Michael Hansen",
    "author_email": "mike@rhasspy.org",
    "download_url": "https://files.pythonhosted.org/packages/53/d4/9f5368a2b38add4a156d79487c59f79bb6e9930d90f3b9ae03891f3edae7/pymicro_vad-2.0.0.tar.gz",
    "platform": null,
    "description": "# microVAD\n\nSelf-contained voice activity detector (VAD) that uses the machine learning architecture from [microWakeWord](https://github.com/kahrendt/microWakeWord/).\n\n\n## Installation\n\n``` sh\npip install pymicro-vad\n```\n\n\n## Usage\n\n``` python\nfrom pymicro_vad import MicroVad\n\nvad = MicroVad()\nthreshold = 0.5\n\n# Process 10ms chunks of 16-bit mono PCM @16Khz\nwhile audio := get_10ms_of_audio():  # you define this\n    assert len(audio) == 160 * 2  # 160 samples\n    speech_prob = vad.process_10ms(audio)\n    if speech_prob < 0:\n        print(\"Need more audio\")\n    elif speech_prob > threshold:\n        print(\"Speech\")\n    else:\n        print(\"Silence\")\n```\n\n\n## Building\n\nEnsure you have `python3-dev` and `build-essential` installed.\n\nRun `script/setup` to create a virtual environment, then `script/build` to build the extension locally.\n",
    "bugtrack_url": null,
    "license": "Apache",
    "summary": "Self-contained voice activity detector",
    "version": "2.0.0",
    "project_urls": {
        "Homepage": "https://github.com/rhasspy/pymicro-vad"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7fcc09ebd2e4f8da2ba539eb3cc6f09d2a297c0d36a8eda9a2824b7067908943",
                "md5": "719724903f23272599e9ead404a6823e",
                "sha256": "7b6c46a10b3973373c977bd35ab5959415d1d1814eb37a9e87a7866aa75365d5"
            },
            "downloads": -1,
            "filename": "pymicro_vad-2.0.0-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl",
            "has_sig": false,
            "md5_digest": "719724903f23272599e9ead404a6823e",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 324364,
            "upload_time": "2025-10-07T20:47:58",
            "upload_time_iso_8601": "2025-10-07T20:47:58.660168Z",
            "url": "https://files.pythonhosted.org/packages/7f/cc/09ebd2e4f8da2ba539eb3cc6f09d2a297c0d36a8eda9a2824b7067908943/pymicro_vad-2.0.0-cp39-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "d5172ef84b8cff6ffef2de685d144d2be14e3059e877fcf15190783513e02f42",
                "md5": "18f445332cee3a30bf8e14737186b444",
                "sha256": "0b4e36dcf0aa780bc332d8cc1e1f301cb5482e51d5245a735046c64aa73b26cf"
            },
            "downloads": -1,
            "filename": "pymicro_vad-2.0.0-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "18f445332cee3a30bf8e14737186b444",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 326341,
            "upload_time": "2025-10-07T20:47:59",
            "upload_time_iso_8601": "2025-10-07T20:47:59.856351Z",
            "url": "https://files.pythonhosted.org/packages/d5/17/2ef84b8cff6ffef2de685d144d2be14e3059e877fcf15190783513e02f42/pymicro_vad-2.0.0-cp39-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "53d49f5368a2b38add4a156d79487c59f79bb6e9930d90f3b9ae03891f3edae7",
                "md5": "d0817a37d84b94876b53db065c2e3d2e",
                "sha256": "3fa33c4e18feabb5a1e11c734b6bc0432df58c45db5290bd6f340e9e9b529dd8"
            },
            "downloads": -1,
            "filename": "pymicro_vad-2.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "d0817a37d84b94876b53db065c2e3d2e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 135792,
            "upload_time": "2025-10-07T20:48:00",
            "upload_time_iso_8601": "2025-10-07T20:48:00.971215Z",
            "url": "https://files.pythonhosted.org/packages/53/d4/9f5368a2b38add4a156d79487c59f79bb6e9930d90f3b9ae03891f3edae7/pymicro_vad-2.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-07 20:48:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rhasspy",
    "github_project": "pymicro-vad",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "pymicro-vad"
}
        
Elapsed time: 0.91871s