PortAudioSharp2 0.3.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package PortAudioSharp2 --version 0.3.2
                    
NuGet\Install-Package PortAudioSharp2 -Version 0.3.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PortAudioSharp2" Version="0.3.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PortAudioSharp2" Version="0.3.2" />
                    
Directory.Packages.props
<PackageReference Include="PortAudioSharp2" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PortAudioSharp2 --version 0.3.2
                    
#r "nuget: PortAudioSharp2, 0.3.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package PortAudioSharp2@0.3.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PortAudioSharp2&version=0.3.2
                    
Install as a Cake Addin
#tool nuget:?package=PortAudioSharp2&version=0.3.2
                    
Install as a Cake Tool

Introduction

C# binding for portaudio supporting Linux, macOS, and Windows.

You can find its usage for real time speech recognition from a microphone using sherpa-onnx at https://github.com/k2-fsa/sherpa-onnx/tree/master/dotnet-examples/speech-recognition-from-microphone

See https://www.nuget.org/packages/PortAudioSharp2

The binding code is from copied from PortAudioSharp.

Different from PortAudioSharp, this project packages pre-compiled portaudio into the nuget package, which simplifies user's life.

It's worth mentioning again that the binding code is copied from directly from PortAudioSharp.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on PortAudioSharp2:

Package Downloads
Deepgram.Microphone

Helper Microphone Package

WhisperLive.Client.Recorder

A dotnet client for WhisperLive speech to text server with microphone record support.

MonoStereo

An custom audio engine built using NAudio and PortAudio.

XiaoZhiSharp

小智XiaoZhi Chat SDK

Walgelijk.PortAudio

Cross-platform audio backend for Walgelijk using PortAudio

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on PortAudioSharp2:

Repository Stars
elevenyellow/handcrafted-persona-engine
An AI-powered interactive avatar engine using Live2D, LLM, ASR, TTS, and RVC. Ideal for VTubing, streaming, and virtual assistant applications.
6over3/hako
An embeddable, lightweight, secure, high-performance JavaScript engine.
zhulige/xiaozhi-sharp
C# 版本的小智SDK & Client,支持Windows、Linux、Mac、Android、IOS 等。
Version Downloads Last Updated
1.0.6 8,415 10/16/2025
1.0.4 41,325 7/31/2024
1.0.3 416 6/27/2024
1.0.2 489 6/13/2024
1.0.1 439 5/19/2024
1.0.0 10,235 3/20/2024
0.4.0 1,961 7/2/2023
0.3.2 556 7/1/2023
0.3.1 516 7/1/2023
0.3.0 576 7/1/2023
0.2.0 547 7/1/2023
0.1.0 765 7/1/2023