Uniform.Matrix.Audio
0.1.13
dotnet add package Uniform.Matrix.Audio --version 0.1.13
NuGet\Install-Package Uniform.Matrix.Audio -Version 0.1.13
<PackageReference Include="Uniform.Matrix.Audio" Version="0.1.13" />
<PackageVersion Include="Uniform.Matrix.Audio" Version="0.1.13" />
<PackageReference Include="Uniform.Matrix.Audio" />
paket add Uniform.Matrix.Audio --version 0.1.13
#r "nuget: Uniform.Matrix.Audio, 0.1.13"
#:package Uniform.Matrix.Audio@0.1.13
#addin nuget:?package=Uniform.Matrix.Audio&version=0.1.13
#tool nuget:?package=Uniform.Matrix.Audio&version=0.1.13
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 | Versions 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. |
-
net10.0
- Concentus (>= 2.2.2)
- NAudio.Alsa (>= 3.3.0)
- NAudio.Core (>= 3.3.0)
- NAudio.Wasapi (>= 3.3.0)
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.13 | 36 | 10/30/2026 |
| 0.1.13-rc5 | 34 | 10/30/2026 |
| 0.1.13-rc4 | 40 | 10/30/2026 |
| 0.1.12-rc4 | 43 | 10/29/2026 |
| 0.1.12-rc1 | 40 | 10/29/2026 |
| 0.1.11 | 50 | 10/29/2026 |
| 0.1.10 | 46 | 10/29/2026 |
| 0.1.8 | 46 | 10/29/2026 |
| 0.1.8-rc4 | 39 | 10/29/2026 |
| 0.1.8-rc3 | 42 | 10/29/2026 |