picovoicedemo


Namepicovoicedemo JSON
Version 3.0.2 PyPI version JSON
download
home_pagehttps://github.com/Picovoice/picovoice
SummaryPicovoice demos.
upload_time2024-01-31 00:20:03
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 Demos

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

This package contains demos and commandline utilities for processing real-time audio (i.e. microphone) and audio files
using Picovoice platform.

## Picovoice

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
sudo pip3 install picovoicedemo
```

## 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

### File Demo

It allows testing Picovoice on a corpus of audio files. The demo is mainly useful for quantitative performance
benchmarking. It accepts 16kHz audio files. Picovoice processes a single-channel audio stream if a stereo file is
provided it only processes the first (left) channel. The following processes a file looking for instances of the wake 
phrase defined in the file located at `${PATH_TO_PORCUPINE_KEYWORD_FILE}` and then infers the follow-on spoken command
using the context defined by the file located at `${PATH_TO_RHINO_CONTEXT_FILE)}`:

```console
picovoice_demo_file \
--access_key ${ACCESS_KEY} \
--wav_path ${PATH_TO_INPUT_AUDIO_FILE} \
--keyword_path ${PATH_TO_PORCUPINE_KEYWORD_FILE} \
--context_path ${PATH_TO_RHINO_CONTEXT_FILE)}
```

### Mic Demo

It opens an audio stream from a microphone and detects utterances of a give wake word(s). The following processes
incoming audio from the microphone for instances of the wake phrase defined in the file located at
`${PATH_TO_PORCUPINE_KEYWORD_FILE}` and then infers the follow-on spoken command using the context defined by the file
located at `${PATH_TO_RHINO_CONTEXT_FILE)}`. Upon completion of the spoken command inference it resumes wake word
detection.

```console
picovoice_demo_mic \
--access_key ${ACCESS_KEY} \
--keyword_path ${PATH_TO_PORCUPINE_KEYWORD_FILE} \
--context_path ${PATH_TO_RHINO_CONTEXT_FILE)}
```

It is possible that the default audio input device recognized by the demo is not the one being used. There are a couple of
debugging facilities baked into the demo application to solve this. First, type the following into the console:

```console
picovoice_demo_mic --show_audio_devices
```

It provides information about various audio input devices on the box. On a Linux box, this is the console output

```
index: 0, device name: USB Audio Device
index: 1, device name: MacBook Air Microphone
``` 

You can use the device index to specify which microphone to use for the demo. For instance, if you want to use the 
USB Audio Device in the above example, you can invoke the demo application as below:

```console
picovoice_demo_mic \
--access_key ${ACCESS_KEY} \
--keyword_path ${PATH_TO_PORCUPINE_KEYWORD_FILE} \
--context_path ${PATH_TO_RHINO_CONTEXT_FILE)} \
--audio_device_index 0
```

If the problem persists we suggest storing the recorded audio into a file for inspection. This can be achieved by

```console
picovoice_demo_mic \
--access_key ${ACCESS_KEY} \
--keyword_path ${PATH_TO_PORCUPINE_KEYWORD_FILE} \
--context_path ${PATH_TO_RHINO_CONTEXT_FILE)} \
--audio_device_index 0 \
--output_path ~/test.wav
```

If after listening to stored file there is no apparent problem detected please open an issue.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Picovoice/picovoice",
    "name": "picovoicedemo",
    "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/02/bd/79465f91908177dc93880a09750584d9e9d2e71723b539521f677d0d6fd7/picovoicedemo-3.0.2.tar.gz",
    "platform": null,
    "description": "# Picovoice Demos\n\nMade in Vancouver, Canada by [Picovoice](https://picovoice.ai)\n\nThis package contains demos and commandline utilities for processing real-time audio (i.e. microphone) and audio files\nusing Picovoice platform.\n\n## Picovoice\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\nsudo pip3 install picovoicedemo\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\n### File Demo\n\nIt allows testing Picovoice on a corpus of audio files. The demo is mainly useful for quantitative performance\nbenchmarking. It accepts 16kHz audio files. Picovoice processes a single-channel audio stream if a stereo file is\nprovided it only processes the first (left) channel. The following processes a file looking for instances of the wake \nphrase defined in the file located at `${PATH_TO_PORCUPINE_KEYWORD_FILE}` and then infers the follow-on spoken command\nusing the context defined by the file located at `${PATH_TO_RHINO_CONTEXT_FILE)}`:\n\n```console\npicovoice_demo_file \\\n--access_key ${ACCESS_KEY} \\\n--wav_path ${PATH_TO_INPUT_AUDIO_FILE} \\\n--keyword_path ${PATH_TO_PORCUPINE_KEYWORD_FILE} \\\n--context_path ${PATH_TO_RHINO_CONTEXT_FILE)}\n```\n\n### Mic Demo\n\nIt opens an audio stream from a microphone and detects utterances of a give wake word(s). The following processes\nincoming audio from the microphone for instances of the wake phrase defined in the file located at\n`${PATH_TO_PORCUPINE_KEYWORD_FILE}` and then infers the follow-on spoken command using the context defined by the file\nlocated at `${PATH_TO_RHINO_CONTEXT_FILE)}`. Upon completion of the spoken command inference it resumes wake word\ndetection.\n\n```console\npicovoice_demo_mic \\\n--access_key ${ACCESS_KEY} \\\n--keyword_path ${PATH_TO_PORCUPINE_KEYWORD_FILE} \\\n--context_path ${PATH_TO_RHINO_CONTEXT_FILE)}\n```\n\nIt is possible that the default audio input device recognized by the demo is not the one being used. There are a couple of\ndebugging facilities baked into the demo application to solve this. First, type the following into the console:\n\n```console\npicovoice_demo_mic --show_audio_devices\n```\n\nIt provides information about various audio input devices on the box. On a Linux box, this is the console output\n\n```\nindex: 0, device name: USB Audio Device\nindex: 1, device name: MacBook Air Microphone\n``` \n\nYou can use the device index to specify which microphone to use for the demo. For instance, if you want to use the \nUSB Audio Device in the above example, you can invoke the demo application as below:\n\n```console\npicovoice_demo_mic \\\n--access_key ${ACCESS_KEY} \\\n--keyword_path ${PATH_TO_PORCUPINE_KEYWORD_FILE} \\\n--context_path ${PATH_TO_RHINO_CONTEXT_FILE)} \\\n--audio_device_index 0\n```\n\nIf the problem persists we suggest storing the recorded audio into a file for inspection. This can be achieved by\n\n```console\npicovoice_demo_mic \\\n--access_key ${ACCESS_KEY} \\\n--keyword_path ${PATH_TO_PORCUPINE_KEYWORD_FILE} \\\n--context_path ${PATH_TO_RHINO_CONTEXT_FILE)} \\\n--audio_device_index 0 \\\n--output_path ~/test.wav\n```\n\nIf after listening to stored file there is no apparent problem detected please open an issue.\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Picovoice demos.",
    "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": "f591d86485b17e42b810998f302e0dad9d25deb06eaad7cc318f9ddae67421b1",
                "md5": "7db5b6fb330e198efd94d7f7bc976ed6",
                "sha256": "d1dc2235bf112b4e2ca63d262fdf199dd2019d3ee936d95bf6e4f1f87b2ac0bd"
            },
            "downloads": -1,
            "filename": "picovoicedemo-3.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7db5b6fb330e198efd94d7f7bc976ed6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 12135,
            "upload_time": "2024-01-31T00:20:00",
            "upload_time_iso_8601": "2024-01-31T00:20:00.439589Z",
            "url": "https://files.pythonhosted.org/packages/f5/91/d86485b17e42b810998f302e0dad9d25deb06eaad7cc318f9ddae67421b1/picovoicedemo-3.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "02bd79465f91908177dc93880a09750584d9e9d2e71723b539521f677d0d6fd7",
                "md5": "398c947665262c2cbc1e60738a25f337",
                "sha256": "0e526d4138bfb997bb80bb5ec464f947b531903e9b4354c70551521d14dfcf0c"
            },
            "downloads": -1,
            "filename": "picovoicedemo-3.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "398c947665262c2cbc1e60738a25f337",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 11760,
            "upload_time": "2024-01-31T00:20:03",
            "upload_time_iso_8601": "2024-01-31T00:20:03.394016Z",
            "url": "https://files.pythonhosted.org/packages/02/bd/79465f91908177dc93880a09750584d9e9d2e71723b539521f677d0d6fd7/picovoicedemo-3.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-31 00:20:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Picovoice",
    "github_project": "picovoice",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "picovoicedemo"
}
        
Elapsed time: 0.17720s