Uniform.Matrix.Audio 0.1.16

There is a newer version of this package available.
See the version list below for details.
dotnet add package Uniform.Matrix.Audio --version 0.1.16
                    
NuGet\Install-Package Uniform.Matrix.Audio -Version 0.1.16
                    
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="Uniform.Matrix.Audio" Version="0.1.16" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Uniform.Matrix.Audio" Version="0.1.16" />
                    
Directory.Packages.props
<PackageReference Include="Uniform.Matrix.Audio" />
                    
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 Uniform.Matrix.Audio --version 0.1.16
                    
#r "nuget: Uniform.Matrix.Audio, 0.1.16"
                    
#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 Uniform.Matrix.Audio@0.1.16
                    
#: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=Uniform.Matrix.Audio&version=0.1.16
                    
Install as a Cake Addin
#tool nuget:?package=Uniform.Matrix.Audio&version=0.1.16
                    
Install as a Cake Tool

Uniform.Matrix.Audio

Voice audio for Matrix calls: 20 ms voice frames from a microphone and to a speaker over NAudio, with ALSA on Linux and WASAPI on Windows, and Opus encoding and decoding with Concentus in pure C#.

dotnet add package Uniform.Matrix.Audio

To hear yourself through Opus a second later, testing the microphone and speaker:

using Uniform.Matrix.Audio;

IAudioDevices devices = AudioDevices.ForThisPlatform() ?? throw new PlatformNotSupportedException();
using VoiceLoopback loopback = new(devices, TimeSpan.FromSeconds(1));
loopback.Start();
Console.ReadLine();

To encode and decode frames yourself, with MicrophoneFrames delivering 960-sample frames from any NAudio IWaveIn:

VoiceEncoder encoder = new();
VoiceDecoder decoder = new();
byte[] packet = encoder.Encode(frame);
short[] played = decoder.Decode(packet);
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Uniform.Matrix.Audio:

Package Downloads
Uniform.Matrix.Calls

Matrix 1:1 voice calls (m.call.*) for the Uniform.Matrix client engine: signalling over room events, WebRTC media with Uniform.Matrix.WebRtc, and voice through Uniform.Matrix.Audio.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.19 0 11/9/2026
0.1.18 0 11/9/2026
0.1.17 0 11/9/2026
0.1.16 0 11/9/2026
0.1.15 0 11/9/2026
0.1.14-rc5 0 11/9/2026
0.1.14-rc4 0 11/9/2026
0.1.14-rc2 0 11/9/2026
0.1.13 105 10/30/2026
0.1.13-rc5 94 10/30/2026
0.1.13-rc4 99 10/30/2026
0.1.12-rc4 102 10/29/2026
0.1.12-rc1 99 10/29/2026
0.1.11 109 10/29/2026
0.1.10 106 10/29/2026
0.1.8 107 10/29/2026
0.1.8-rc4 98 10/29/2026
0.1.8-rc3 103 10/29/2026