picovoice


Namepicovoice JSON
Version 3.0.2 PyPI version JSON
download
home_pagehttps://github.com/Picovoice/picovoice
SummaryPicovoice is an end-to-end platform for building voice products on your terms.
upload_time2024-01-31 00:19:44
maintainer
docs_urlNone
authorPicovoice Inc.
requires_python>=3.7
license
keywords wake word voice control speech recognition voice recognition natural language understanding
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Picovoice

Made in Vancouver, Canada by [Picovoice](https://picovoice.ai)

Picovoice is an end-to-end platform for building voice products on your terms. It enables creating voice experiences
similar to Alexa and Google. But it entirely runs 100% on-device. Picovoice is

- **Private:** Everything is processed offline. Intrinsically HIPAA and GDPR-compliant.
- **Reliable:** Runs without needing constant connectivity.
- **Zero Latency:** Edge-first architecture eliminates unpredictable network delay.
- **Accurate:** Resilient to noise and reverberation. It outperforms cloud-based alternatives by wide margins
[*](https://github.com/Picovoice/speech-to-intent-benchmark#results).
- **Cross-Platform:** Design once, deploy anywhere. Build using familiar languages and frameworks.

## Compatibility

* Python 3.7+
* Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (all variants), NVIDIA Jetson (Nano), and BeagleBone.

## Installation

```console
pip3 install picovoice
```

## AccessKey

Picovoice requires a valid Picovoice `AccessKey` at initialization. `AccessKey` acts as your credentials when using Picovoice SDKs.
You can get your `AccessKey` for free. Make sure to keep your `AccessKey` secret.
Signup or Login to [Picovoice Console](https://console.picovoice.ai/) to get your `AccessKey`.

## Usage

Create a new instance of Picovoice runtime engine

```python
from picovoice import Picovoice

access_key = "${ACCESS_KEY}" # AccessKey obtained from Picovoice Console (https://console.picovoice.ai/)

keyword_path = ...

def wake_word_callback():
    pass

context_path = ...

def inference_callback(inference):
    # `inference` exposes three immutable fields:
    # (1) `is_understood`
    # (2) `intent`
    # (3) `slots`
    pass

picovoice = Picovoice(
        access_key=access_key,
        keyword_path=keyword_path,
        wake_word_callback=wake_word_callback,
        context_path=context_path,
        inference_callback=inference_callback)
```

`picovoice` is an instance of Picovoice runtime engine that detects utterances of wake phrase defined in the file located at
`keyword_path`. Upon detection of wake word it starts inferring user's intent from the follow-on voice command within
the context defined by the file located at `context_path`. `keyword_path` is the absolute path to
[Porcupine wake word engine](https://github.com/Picovoice/porcupine) keyword file (with `.ppn` suffix).
`context_path` is the absolute path to [Rhino Speech-to-Intent engine](https://github.com/Picovoice/rhino) context file
(with `.rhn` suffix). `wake_word_callback` is invoked upon the detection of wake phrase and `inference_callback` is
invoked upon completion of follow-on voice command inference.

When instantiated, valid sample rate can be obtained via `.sample_rate`. Expected number of audio samples per
frame is `.frame_length`. The engine accepts 16-bit linearly-encoded PCM and operates on single-channel audio.

```python
def get_next_audio_frame():
    pass

while True:
    picovoice.process(get_next_audio_frame())
```

When done resources have to be released explicitly

```python
picovoice.delete()
```

## Non-English Models

In order to detect wake words and run inference in other languages you need to use the corresponding model file. The model files for all supported languages are available [here](https://github.com/Picovoice/porcupine/tree/master/lib/common) and [here](https://github.com/Picovoice/rhino/tree/master/lib/common).

## Demos

[picovoicedemo](https://pypi.org/project/picovoicedemo/) provides command-line utilities for processing real-time
audio (i.e. microphone) and files using Picovoice platform.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Picovoice/picovoice",
    "name": "picovoice",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "wake word,voice control,speech recognition,voice recognition,natural language understanding",
    "author": "Picovoice Inc.",
    "author_email": "hello@picovoice.ai",
    "download_url": "https://files.pythonhosted.org/packages/75/5f/771a38dbcff51da0f00ba77739334e3299ecf1b57d7f2613a1153e3b2ff3/picovoice-3.0.2.tar.gz",
    "platform": null,
    "description": "# Picovoice\n\nMade in Vancouver, Canada by [Picovoice](https://picovoice.ai)\n\nPicovoice is an end-to-end platform for building voice products on your terms. It enables creating voice experiences\nsimilar to Alexa and Google. But it entirely runs 100% on-device. Picovoice is\n\n- **Private:** Everything is processed offline. Intrinsically HIPAA and GDPR-compliant.\n- **Reliable:** Runs without needing constant connectivity.\n- **Zero Latency:** Edge-first architecture eliminates unpredictable network delay.\n- **Accurate:** Resilient to noise and reverberation. It outperforms cloud-based alternatives by wide margins\n[*](https://github.com/Picovoice/speech-to-intent-benchmark#results).\n- **Cross-Platform:** Design once, deploy anywhere. Build using familiar languages and frameworks.\n\n## Compatibility\n\n* Python 3.7+\n* Runs on Linux (x86_64), macOS (x86_64, arm64), Windows (x86_64), Raspberry Pi (all variants), NVIDIA Jetson (Nano), and BeagleBone.\n\n## Installation\n\n```console\npip3 install picovoice\n```\n\n## AccessKey\n\nPicovoice requires a valid Picovoice `AccessKey` at initialization. `AccessKey` acts as your credentials when using Picovoice SDKs.\nYou can get your `AccessKey` for free. Make sure to keep your `AccessKey` secret.\nSignup or Login to [Picovoice Console](https://console.picovoice.ai/) to get your `AccessKey`.\n\n## Usage\n\nCreate a new instance of Picovoice runtime engine\n\n```python\nfrom picovoice import Picovoice\n\naccess_key = \"${ACCESS_KEY}\" # AccessKey obtained from Picovoice Console (https://console.picovoice.ai/)\n\nkeyword_path = ...\n\ndef wake_word_callback():\n    pass\n\ncontext_path = ...\n\ndef inference_callback(inference):\n    # `inference` exposes three immutable fields:\n    # (1) `is_understood`\n    # (2) `intent`\n    # (3) `slots`\n    pass\n\npicovoice = Picovoice(\n        access_key=access_key,\n        keyword_path=keyword_path,\n        wake_word_callback=wake_word_callback,\n        context_path=context_path,\n        inference_callback=inference_callback)\n```\n\n`picovoice` is an instance of Picovoice runtime engine that detects utterances of wake phrase defined in the file located at\n`keyword_path`. Upon detection of wake word it starts inferring user's intent from the follow-on voice command within\nthe context defined by the file located at `context_path`. `keyword_path` is the absolute path to\n[Porcupine wake word engine](https://github.com/Picovoice/porcupine) keyword file (with `.ppn` suffix).\n`context_path` is the absolute path to [Rhino Speech-to-Intent engine](https://github.com/Picovoice/rhino) context file\n(with `.rhn` suffix). `wake_word_callback` is invoked upon the detection of wake phrase and `inference_callback` is\ninvoked upon completion of follow-on voice command inference.\n\nWhen instantiated, valid sample rate can be obtained via `.sample_rate`. Expected number of audio samples per\nframe is `.frame_length`. The engine accepts 16-bit linearly-encoded PCM and operates on single-channel audio.\n\n```python\ndef get_next_audio_frame():\n    pass\n\nwhile True:\n    picovoice.process(get_next_audio_frame())\n```\n\nWhen done resources have to be released explicitly\n\n```python\npicovoice.delete()\n```\n\n## Non-English Models\n\nIn order to detect wake words and run inference in other languages you need to use the corresponding model file. The model files for all supported languages are available [here](https://github.com/Picovoice/porcupine/tree/master/lib/common) and [here](https://github.com/Picovoice/rhino/tree/master/lib/common).\n\n## Demos\n\n[picovoicedemo](https://pypi.org/project/picovoicedemo/) provides command-line utilities for processing real-time\naudio (i.e. microphone) and files using Picovoice platform.\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Picovoice is an end-to-end platform for building voice products on your terms.",
    "version": "3.0.2",
    "project_urls": {
        "Homepage": "https://github.com/Picovoice/picovoice"
    },
    "split_keywords": [
        "wake word",
        "voice control",
        "speech recognition",
        "voice recognition",
        "natural language understanding"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2f67f412a8b3c203e4d92134c56c1efa3a8e65ebe0504cfde812145f93e4edfe",
                "md5": "f4b25fbe5f4772cbbc04832c01a7b7fc",
                "sha256": "4ce6eb8cd6fb97194298e26ae498851a74c8985e8b6b1bbfb88e81527601a9ae"
            },
            "downloads": -1,
            "filename": "picovoice-3.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f4b25fbe5f4772cbbc04832c01a7b7fc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 11038,
            "upload_time": "2024-01-31T00:19:43",
            "upload_time_iso_8601": "2024-01-31T00:19:43.653608Z",
            "url": "https://files.pythonhosted.org/packages/2f/67/f412a8b3c203e4d92134c56c1efa3a8e65ebe0504cfde812145f93e4edfe/picovoice-3.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "755f771a38dbcff51da0f00ba77739334e3299ecf1b57d7f2613a1153e3b2ff3",
                "md5": "ec0ffabe27c1e4330488d202a19411e0",
                "sha256": "c4345d1e5e674e15f6413aefb09d380f0e09fa0ac352eaddc4b0d05195b54a84"
            },
            "downloads": -1,
            "filename": "picovoice-3.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "ec0ffabe27c1e4330488d202a19411e0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 12005,
            "upload_time": "2024-01-31T00:19:44",
            "upload_time_iso_8601": "2024-01-31T00:19:44.992959Z",
            "url": "https://files.pythonhosted.org/packages/75/5f/771a38dbcff51da0f00ba77739334e3299ecf1b57d7f2613a1153e3b2ff3/picovoice-3.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-31 00:19:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Picovoice",
    "github_project": "picovoice",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "picovoice"
}
        
Elapsed time: 0.17259s