pvrhinodemo


Namepvrhinodemo JSON
Version 3.0.2 PyPI version JSON
download
home_pagehttps://github.com/Picovoice/rhino
SummaryRhino Speech-to-Intent engine demos.
upload_time2024-01-31 00:16:46
maintainer
docs_urlNone
authorPicovoice
requires_python>=3.7
license
keywords speech-to-intent voice commands voice control speech recognition natural language understanding
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Rhino Speech-to-Intent Engine 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 Rhino Speech-to-Intent engine.

## Rhino

Rhino is Picovoice's Speech-to-Intent engine. It directly infers intent from spoken commands within a given context of
interest, in real-time. For example, given a spoken command

>Can I have a small double-shot espresso?

Rhino infers that the user and emits the following inference result:

```json
{
  "isUnderstood": "true",
  "intent": "orderBeverage",
  "slots": {
    "beverage": "espresso",
    "size": "small",
    "numberOfShots": "2"
  }
}
```

Rhino is:

- using deep neural networks trained in real-world environments.
- compact and computationally-efficient. It is perfect for IoT.
- self-service. Developers can train custom models using [Picovoice Console](https://console.picovoice.ai/).

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

## AccessKey

Rhino requires a valid Picovoice `AccessKey` at initialization. `AccessKey` acts as your credentials when using Rhino 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 Rhino on a corpus of audio files. The demo is mainly useful for quantitative performance
benchmarking. It accepts 16kHz audio files. Rhino processes a single-channel audio stream if a stereo file is
provided it only processes the first (left) channel. Note that only the relevant spoken command should be present in the
file and no other speech. There also needs to be at least one second of silence at the end of the file.

```console
rhino_demo_file --wav_path ${AUDIO_PATH} --access_key ${ACCESS_KEY} --context_path ${CONTEXT_PATH} 
```

### Microphone Demo

It opens an audio stream from a microphone and performs inference in spoken commands:

```console
rhino_demo_mic --access_key ${ACCESS_KEY} --context_path ${CONTEXT_PATH}
```

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
rhino_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
rhino_demo_mic --access_key ${ACCESS_KEY} --context_path ${CONTEXT_PATH} --audio_device_index 0
```

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

```console
rhino_demo_mic --access_key ${ACCESS_KEY} --context_path ${CONTEXT_PATH} --audio_device_index 0 --output_path ~/test.wav
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Picovoice/rhino",
    "name": "pvrhinodemo",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "Speech-to-Intent,voice commands,voice control,speech recognition,natural language understanding",
    "author": "Picovoice",
    "author_email": "hello@picovoice.ai",
    "download_url": "https://files.pythonhosted.org/packages/e0/39/e0c5c19cc890632434d09c46a00d626f76a1654ced4eb7d0c978bde3a508/pvrhinodemo-3.0.2.tar.gz",
    "platform": null,
    "description": "# Rhino Speech-to-Intent Engine 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 Rhino Speech-to-Intent engine.\n\n## Rhino\n\nRhino is Picovoice's Speech-to-Intent engine. It directly infers intent from spoken commands within a given context of\ninterest, in real-time. For example, given a spoken command\n\n>Can I have a small double-shot espresso?\n\nRhino infers that the user and emits the following inference result:\n\n```json\n{\n  \"isUnderstood\": \"true\",\n  \"intent\": \"orderBeverage\",\n  \"slots\": {\n    \"beverage\": \"espresso\",\n    \"size\": \"small\",\n    \"numberOfShots\": \"2\"\n  }\n}\n```\n\nRhino is:\n\n- using deep neural networks trained in real-world environments.\n- compact and computationally-efficient. It is perfect for IoT.\n- self-service. Developers can train custom models using [Picovoice Console](https://console.picovoice.ai/).\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 pvrhinodemo\n```\n\n## AccessKey\n\nRhino requires a valid Picovoice `AccessKey` at initialization. `AccessKey` acts as your credentials when using Rhino 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 Rhino on a corpus of audio files. The demo is mainly useful for quantitative performance\nbenchmarking. It accepts 16kHz audio files. Rhino processes a single-channel audio stream if a stereo file is\nprovided it only processes the first (left) channel. Note that only the relevant spoken command should be present in the\nfile and no other speech. There also needs to be at least one second of silence at the end of the file.\n\n```console\nrhino_demo_file --wav_path ${AUDIO_PATH} --access_key ${ACCESS_KEY} --context_path ${CONTEXT_PATH} \n```\n\n### Microphone Demo\n\nIt opens an audio stream from a microphone and performs inference in spoken commands:\n\n```console\nrhino_demo_mic --access_key ${ACCESS_KEY} --context_path ${CONTEXT_PATH}\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 \nof debugging facilities baked into the demo application to solve this. First, type the following into the console:\n\n```console\nrhino_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 USB Audio Device\nin the above example, you can invoke the demo application as below:\n\n```console\nrhino_demo_mic --access_key ${ACCESS_KEY} --context_path ${CONTEXT_PATH} --audio_device_index 0\n```\n\nIf a problem occurs, we suggest storing the recorded audio into a file for inspection. This can be achieved by:\n\n```console\nrhino_demo_mic --access_key ${ACCESS_KEY} --context_path ${CONTEXT_PATH} --audio_device_index 0 --output_path ~/test.wav\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Rhino Speech-to-Intent engine demos.",
    "version": "3.0.2",
    "project_urls": {
        "Homepage": "https://github.com/Picovoice/rhino"
    },
    "split_keywords": [
        "speech-to-intent",
        "voice commands",
        "voice control",
        "speech recognition",
        "natural language understanding"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dbd7ce6dbbdf3447e0d562cac3c990e61e31343a4ac351419e448063d564e441",
                "md5": "98578cfd6ce794a9c9dd42ed86851aae",
                "sha256": "64f763a6cbf2f3e951c19f576739e9b2306bcb86f3b51e0d3bc51810d450d72c"
            },
            "downloads": -1,
            "filename": "pvrhinodemo-3.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "98578cfd6ce794a9c9dd42ed86851aae",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 7503,
            "upload_time": "2024-01-31T00:16:40",
            "upload_time_iso_8601": "2024-01-31T00:16:40.989391Z",
            "url": "https://files.pythonhosted.org/packages/db/d7/ce6dbbdf3447e0d562cac3c990e61e31343a4ac351419e448063d564e441/pvrhinodemo-3.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e039e0c5c19cc890632434d09c46a00d626f76a1654ced4eb7d0c978bde3a508",
                "md5": "727c78f0308a69dd2e6013e1c76bd195",
                "sha256": "26b4f88a75754b7ad4aa7377a1026070ae421bdd03b18f47c8ef2f488add3860"
            },
            "downloads": -1,
            "filename": "pvrhinodemo-3.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "727c78f0308a69dd2e6013e1c76bd195",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 5776,
            "upload_time": "2024-01-31T00:16:46",
            "upload_time_iso_8601": "2024-01-31T00:16:46.065173Z",
            "url": "https://files.pythonhosted.org/packages/e0/39/e0c5c19cc890632434d09c46a00d626f76a1654ced4eb7d0c978bde3a508/pvrhinodemo-3.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-31 00:16:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Picovoice",
    "github_project": "rhino",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pvrhinodemo"
}
        
Elapsed time: 0.19709s