Picovoice 1.0.0

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 *.
- Cross-Platform: Design once, deploy anywhere. Build using familiar languages and frameworks.

Install-Package Picovoice -Version 1.0.0
dotnet add package Picovoice --version 1.0.0
<PackageReference Include="Picovoice" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Picovoice --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Picovoice

Made in Vancouver, Canada by 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
    *.
  • Cross-Platform: Design once, deploy anywhere. Build using familiar languages and frameworks.

Compatibility

  • .NET Standard 2.0, .NET Core 2.0+, .NET Framework 4.6.1+
  • Runs on Linux (x86_64), macOS (x86_64) and Windows (x86_64)

Installation

You can install the latest version of Picovoice by adding the latest Picovoice Nuget package in Visual Studio or using the .NET CLI.

dotnet add package Picovoice

Usage

Create an instance of the engine

using Pv;

string keywordPath = "/absolute/path/to/keyword.ppn";

void wakeWordCallback() => {..}

string contextPath = "/absolute/path/to/context.rhn";

void inferenceCallback(Inference inference)
{
    // `inference` exposes three immutable properties:
    // (1) `IsUnderstood`
    // (2) `Intent`
    // (3) `Slots`
    // ..
}

Picovoice handle = new Picovoice(keywordPath, 
                                 wakeWordCallback, 
                                 contextPath,
                                 inferenceCallback); 

handle is an instance of Picovoice runtime engine that detects utterances of wake phrase defined in the file located at
keywordPath. 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 contextPath. keywordPath is the absolute path to
Porcupine wake word engine keyword file (with .ppn suffix).
contextPath is the absolute path to Rhino Speech-to-Intent engine context file
(with .rhn suffix). wakeWordCallback is invoked upon the detection of wake phrase and inferenceCallback is
invoked upon completion of follow-on voice command inference.

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

short[] GetNextAudioFrame()
{
    // .. get audioFrame
    return audioFrame;
}

while(true)
{
    handle.Process(GetNextAudioFrame());    
}

Porcupine will have its resources freed by the garbage collector, but to have resources freed
immediately after use, wrap it in a using statement:

using(Picovoice handle = new Picovoice(keywordPath, wakeWordCallback, contextPath, inferenceCallback))
{
    // .. Picovoice usage here
}

Demos

The Picovoice dotnet demo is a .NET Core command line application that allows for
processing real-time audio (i.e. microphone) and files using Picovoice.

Picovoice

Made in Vancouver, Canada by 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
    *.
  • Cross-Platform: Design once, deploy anywhere. Build using familiar languages and frameworks.

Compatibility

  • .NET Standard 2.0, .NET Core 2.0+, .NET Framework 4.6.1+
  • Runs on Linux (x86_64), macOS (x86_64) and Windows (x86_64)

Installation

You can install the latest version of Picovoice by adding the latest Picovoice Nuget package in Visual Studio or using the .NET CLI.

dotnet add package Picovoice

Usage

Create an instance of the engine

using Pv;

string keywordPath = "/absolute/path/to/keyword.ppn";

void wakeWordCallback() => {..}

string contextPath = "/absolute/path/to/context.rhn";

void inferenceCallback(Inference inference)
{
    // `inference` exposes three immutable properties:
    // (1) `IsUnderstood`
    // (2) `Intent`
    // (3) `Slots`
    // ..
}

Picovoice handle = new Picovoice(keywordPath, 
                                 wakeWordCallback, 
                                 contextPath,
                                 inferenceCallback); 

handle is an instance of Picovoice runtime engine that detects utterances of wake phrase defined in the file located at
keywordPath. 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 contextPath. keywordPath is the absolute path to
Porcupine wake word engine keyword file (with .ppn suffix).
contextPath is the absolute path to Rhino Speech-to-Intent engine context file
(with .rhn suffix). wakeWordCallback is invoked upon the detection of wake phrase and inferenceCallback is
invoked upon completion of follow-on voice command inference.

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

short[] GetNextAudioFrame()
{
    // .. get audioFrame
    return audioFrame;
}

while(true)
{
    handle.Process(GetNextAudioFrame());    
}

Porcupine will have its resources freed by the garbage collector, but to have resources freed
immediately after use, wrap it in a using statement:

using(Picovoice handle = new Picovoice(keywordPath, wakeWordCallback, contextPath, inferenceCallback))
{
    // .. Picovoice usage here
}

Demos

The Picovoice dotnet demo is a .NET Core command line application that allows for
processing real-time audio (i.e. microphone) and files using Picovoice.

Release Notes

See https://github.com/Picovoice/picovoice

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 54 10/22/2020