Rhino 1.6.1
See the version list below for details.
dotnet add package Rhino --version 1.6.1
NuGet\Install-Package Rhino -Version 1.6.1
<PackageReference Include="Rhino" Version="1.6.1" />
paket add Rhino --version 1.6.1
#r "nuget: Rhino, 1.6.1"
// Install Rhino as a Cake Addin #addin nuget:?package=Rhino&version=1.6.1 // Install Rhino as a Cake Tool #tool nuget:?package=Rhino&version=1.6.1
Rhino Speech-to-Intent Engine
Made in Vancouver, Canada by Picovoice
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 with a lot of sugar and some milk", Rhino infers that the user wants to order a drink and emits the following inference result:
{
"type": "espresso",
"size": "small",
"numberOfShots": "2"
}
Rhino is:
- using deep neural networks trained in real-world environments.
- compact and computationally-efficient, making it perfect for IoT.
- self-service. Developers and designers can train custom models using Picovoice Console.
Compatibility
- .NET Standard 2.0, .NET Core 3.0+, .NET Framework 4.6.1+
- Runs on Linux (x86_64), macOS (x86_64), Windows (x86_64) and Raspberry Pi (.NET Core 3.1+)
Installation
You can install the latest version of Rhino by getting the latest Rhino Nuget package in Visual Studio or using the .NET CLI:
dotnet add package Rhino
Usage
Create an instance of the engine:
using Pv;
Rhino handle = Rhino.Create(contextPath:"/absolute/path/to/context");
Where context_path
is the absolute path to Speech-to-Intent context created either using
Picovoice Console or one of the default contexts available on Rhino's GitHub repository.
The sensitivity of the engine can be tuned using the sensitivity
parameter. It is a floating point number within
[0, 1]. A higher sensitivity value results in fewer misses at the cost of (potentially) increasing the erroneous
inference rate.
using Pv;
Rhino handle = Rhino.Create(contextPath:"/absolute/path/to/context", sensitivity: 0.25f);
When initialized, the valid sample rate is given by handle.SampleRate
. Expected frame length (number of audio samples
in an input array) 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)
{
bool isFinalized = handle.Process(GetNextAudioFrame());
if(isFinalized)
{
Inference inference = handle.GetInference();
if(inference.IsUnderstood)
{
string intent = inference.Intent;
Dictionary<string, string> slots = inference.Slots;
// .. code to take action based on inferred intent and slot values
}
else
{
// .. code to handle unsupported commands
}
}
}
Rhino will have its resources freed by the garbage collector, but to have resources freed immediately after use, wrap it in a using statement:
using(Rhino handle = Rhino.Create(contextPath:"/absolute/path/to/context"))
{
// .. Rhino usage here
}
Non-English Contexts
In order to run inference on non-English contexts you need to use the corresponding model file. The model files for all supported languages are available here.
Demos
The Rhino dotnet demo project is a .NET Core console app that allows for processing real-time audio (i.e. microphone) and files using Rhino.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 3.1
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Rhino:
Package | Downloads |
---|---|
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. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
3.0.4 | 493 | 9/17/2024 | |
3.0.3 | 395 | 8/15/2024 | |
3.0.2 | 1,020 | 1/31/2024 | |
3.0.1 | 801 | 11/17/2023 | |
3.0.0 | 663 | 10/25/2023 | |
2.2.3 | 824 | 8/25/2023 | |
2.1.8 | 1,463 | 11/15/2022 | |
2.1.7 | 1,615 | 6/29/2022 | |
2.1.6 | 1,584 | 6/13/2022 | |
2.1.5 | 1,059 | 6/13/2022 | |
2.1.4 | 1,051 | 6/13/2022 | |
2.1.3 | 1,312 | 5/16/2022 | |
2.1.2 | 1,342 | 3/11/2022 | |
2.1.1 | 1,430 | 2/3/2022 | |
2.1.0 | 1,274 | 1/19/2022 | |
2.0.2 | 1,074 | 11/30/2021 | |
1.6.2 | 1,083 | 9/3/2021 | |
1.6.1 | 1,136 | 5/11/2021 | |
1.6.0 | 1,288 | 12/2/2020 | |
1.5.1 | 1,176 | 10/21/2020 |