Metadata-Version: 2.1
Name: pvrhinodemo
Version: 1.6.5
Summary: Rhino Speech-to-Intent engine demos.
Home-page: https://github.com/Picovoice/rhino
Author: Picovoice
Author-email: hello@picovoice.ai
License: UNKNOWN
Description: # 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://picovoice.ai/console/).
        
        ## Compatibility
        
        - Python 3
        - Runs on Linux (x86_64), Mac (x86_64), Windows (x86_64), Raspberry Pi (all variants), NVIDIA Jetson Nano and BeagleBone.
        
        ## Installation
        
        ```console
        sudo pip3 install pvrhinodemo
        ```
        
        ## 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. Also there needs to be at least one second of silence at the end of the file.
        
        ```console
        rhino_demo_file --input_audio_path ${AUDIO_PATH} --context_path ${CONTEXT_PATH} 
        ```
        
        ### Microphone Demo
        
        It opens an audio stream from a microphone and performs inference in spoken commands:
        
        ```console
        rhino_demo_mic --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: Monitor of sof-hda-dsp HDMI3/DP3 Output
        index: 1, device name: Monitor of sof-hda-dsp HDMI2/DP2 Output
        index: 2, device name: Monitor of sof-hda-dsp HDMI1/DP1 Output
        index: 3, device name: Monitor of sof-hda-dsp Speaker + Headphones
        index: 4, device name: sof-hda-dsp Headset Mono Microphone + Headphones Stereo Microphone
        index: 5, device name: sof-hda-dsp Digital Microphone
        ``` 
        
        If you would like to use the default device, leave `audio_device_index` empty, else select the device index from the
        output above. In this example we will use the device at index 5.
        
        ```console
        rhino_demo_mic --context_path ${CONTEXT_PATH} --audio_device_index 5
        ```
        
        If a problem occurs, we suggest storing the recorded audio into a file for inspection. This can be achieved by:
        
        ```console
        rhino_demo_mic --context_path ${CONTEXT_PATH} --audio_device_index 5 --output_path ~/test.wav
        ```
        
Keywords: Speech-to-Intent,voice commands,voice control,speech recognition,natural language understanding
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
Requires-Python: >=3
Description-Content-Type: text/markdown
