Picovoice Platform
.NET Quick Start
Platforms
- Linux (x86_64)
- macOS (x86_64, arm64)
- Windows (x86_64)
- Raspberry Pi (3, 4, 5)
Requirements
.NET Framework 4.6.1+ / .NET Standard 2.0+ / .NET Core 3.0+:
- Windows (x86_64)
.NET Standard 2.0+ / .NET Core 3.0+:
- Linux (x86_64)
- macOS (x86_64)
.NET Core 3.0+:
- Raspberry Pi (3, 4, 5)
.NET 6.0+:
- macOS (arm64)
Picovoice Account & AccessKey
Signup or Login to Picovoice Console to get your AccessKey
.
Make sure to keep your AccessKey
secret.
Quick Start
Setup
Install .NET.
Install the Picovoice NuGet package in Visual Studio or using the .NET CLI:
Usage
Create an instance of Picovoice that uses a Porcupine keyword file, and a Rhino context file:
Pass in frames of audio to the .process
function:
Custom Wake Words & Contexts
Create custom contexts using the Picovoice Console. Download the custom Porcupine keyword (.ppn
) and Rhino context (.rhn
) files and create an instance of Picovoice using the Create
method.
Non-English Languages
Use the corresponding model file (.pv
) to process non-English wake words and contexts.
The model files for all supported languages are available
on the Porcupine and Rhino GitHub repositories.
Pass in the Porcupine model file using the porcupineModelPath
input argument and the Rhino model file using the rhinoModelPath
input argument to change the detection language:
Demo
For the Picovoice .NET SDK, we offer demo applications that demonstrate how to use the end-to-end speech recognition engine on real-time audio streams (i.e. microphone input) and audio files.
Setup
- Clone the Picovoice repository from GitHub:
- Build the demo:
Usage
Use the --help
flag to see the usage options for the demo:
Ensure you have a working microphone connected to your system and run the following command to make inferences based on the given keyword and context files:
For more information on our Picovoice demos for .NET, head over to our GitHub repository.
Resources
Package
API
GitHub
Benchmarks
Further Reading
- Talking Chess: Adding Offline, Cross-Platform Voice Controls to Chess in .NET Core
- From GUI to VUI: Voice-Enabling a Cross-Platform .NET Desktop Application
- How We Added Raspberry Pi Support to Our .NET SDK