Alsa.Net 1.0.10

dotnet add package Alsa.Net --version 1.0.10
                    
NuGet\Install-Package Alsa.Net -Version 1.0.10
                    
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="Alsa.Net" Version="1.0.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Alsa.Net" Version="1.0.10" />
                    
Directory.Packages.props
<PackageReference Include="Alsa.Net" />
                    
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 Alsa.Net --version 1.0.10
                    
#r "nuget: Alsa.Net, 1.0.10"
                    
#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 Alsa.Net@1.0.10
                    
#: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=Alsa.Net&version=1.0.10
                    
Install as a Cake Addin
#tool nuget:?package=Alsa.Net&version=1.0.10
                    
Install as a Cake Tool

ALSA.NET

Simple .Net Standard Wrapper for the Advanced Linux Sound Architecture (ASLA).

Dependencies

Make sure to have the following libary installed on your target device:

sudo apt-get install libasound2-dev

First Steps

  1. Create your custom device settings or use the systems defaults
var soundDeviceSettings = new SoundDeviceSettings();
  1. Build your sound device interface
using var alsaDevice = AlsaDeviceBuilder.Create(soundDeviceSettings);
  1. Record 10 seconds of Audio to a file
alsaDevice.Record(10, "output.wav");
  1. Play a Wav file
alsaDevice.Play("output.wav");

Ensure to look into the example projects for more details on how to use this package.

Thank you

Thanks to ZhangGaoxing for the initial work on the ALSA Native Bindings.

Product 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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Alsa.Net:

Package Downloads
Respeaker.Net

Simple .Net Standard Library to control Respeaker Microphone Arrays

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.10 445 10/16/2025
1.0.9 206 10/16/2025
1.0.8 11,296 7/1/2022
1.0.7 11,547 9/20/2021
1.0.6 1,164 9/9/2021
1.0.5 978 9/3/2021
1.0.4 1,272 5/28/2021
1.0.3 1,365 12/30/2020
1.0.2 1,138 12/7/2020
1.0.1 1,189 12/6/2020
1.0.0 1,125 12/1/2020