OwnAudioSharp 3.1.7
See the version list below for details.
dotnet add package OwnAudioSharp --version 3.1.7
NuGet\Install-Package OwnAudioSharp -Version 3.1.7
<PackageReference Include="OwnAudioSharp" Version="3.1.7" />
<PackageVersion Include="OwnAudioSharp" Version="3.1.7" />
<PackageReference Include="OwnAudioSharp" />
paket add OwnAudioSharp --version 3.1.7
#r "nuget: OwnAudioSharp, 3.1.7"
#:package OwnAudioSharp@3.1.7
#addin nuget:?package=OwnAudioSharp&version=3.1.7
#tool nuget:?package=OwnAudioSharp&version=3.1.7
OwnAudioSharp
Cross-platform audio library for .NET desktop applications
OwnAudioSharp is a professional-grade audio engine providing high-performance audio playback, recording, and processing for Windows, Linux, and macOS with zero external dependencies.
Key Features
- Native Audio Engine: Built on PortAudio and MiniAudio for professional-grade, low-latency audio processing across all platforms
- Multi-format Support: Built-in decoders for MP3, WAV, and FLAC. If FFmpeg 8+ is installed on the system, it is used automatically as the primary decoder, adding support for AAC, OGG, Opus, WMA, AIFF, and virtually any other format — no code changes required.
- Real-time Processing: Zero-allocation design with lock-free buffers for professional-grade performance
- Advanced Audio Features:
- Network Synchronization: Multi-device audio sync across local network (< 5ms accuracy on LAN)
- Master Clock: Sample-accurate timeline synchronization for multi-track playback
- SmartMaster Effect: Intelligent audio mastering with auto-calibration
- AI-powered vocal removal (ONNX-based neural separation)
- Audio matchering and mastering
- Real-time chord detection
- Built-in effects and DSP routines
Quick Start
using OwnaudioNET;
using OwnaudioNET.Features.Vocalremover;
// Initialize the audio engine
OwnaudioNet.Initialize();
OwnaudioNet.Start();
// Create the audio mixer using the underlying engine
var mixer = new AudioMixer(OwnaudioNet.Engine.UnderlyingEngine);
mixer.Start();
// Play an audio file
var music = new FileSource("music.mp3");
mixer.AddSource(music);
// Synchronized Multi-track Playback (Master Clock)
var vocals = new FileSource("vocals.wav");
var backing = new FileSource("backing.mp3");
mixer.AddSource(vocals);
mixer.AddSource(backing);
// Attach sources to the Master Clock for sample-accurate sync
vocals.AttachToClock(mixer.MasterClock);
backing.AttachToClock(mixer.MasterClock);
// Start sources individually
vocals.Play();
backing.Play();
// Network Synchronization - Multi-Device Audio
// Server mode (control device)
await OwnaudioNet.StartNetworkSyncServerAsync(port: 9876);
// Client mode (follower devices)
await OwnaudioNet.StartNetworkSyncClientAsync(
serverAddress: "192.168.1.100", // Or null for auto-discovery
allowOfflinePlayback: true);
// All clients automatically follow server commands
// Perfect for multi-room audio, DJ setups, installations
// AI Vocal Removal
var options = new SimpleSeparationOptions
{
Model = InternalModel.Best,
OutputDirectory = "output"
};
using var separator = new SimpleAudioSeparationService(options);
separator.Initialize();
var result = separator.Separate("song.mp3");
// result.VocalsPath and result.InstrumentalPath contain the output files
FFmpeg Integration (Optional)
OwnAudioSharp automatically detects FFmpeg dynamic libraries on startup. This is not part of the public API — it happens transparently in the decoder layer.
Decoder priority: FFmpeg → MiniAudio (native) → built-in managed decoder
using Ownaudio.Core;
// Optional: set a custom path before first use (default: empty = system paths)
FFmpegConfig.CustomLibraryPath = @"C:\ffmpeg\bin"; // Windows example
// Check whether FFmpeg was detected successfully
if (FFmpegConfig.IsAvailable)
Console.WriteLine("FFmpeg decoder active — extended format support enabled.");
else
Console.WriteLine("FFmpeg not found — using built-in decoders (MP3/WAV/FLAC).");
// No API changes needed — AudioDecoderFactory selects the best decoder automatically
var decoder = AudioDecoderFactory.Create("audio.aac", targetSampleRate: 48000, targetChannels: 2);
Installation per platform:
- Windows: Place
avcodec-62.dll,avformat-62.dll,avutil-60.dll,swresample-6.dllnext to the executable, or anywhere onPATH. - macOS:
brew install ffmpeg - Linux:
sudo apt install libavcodec-dev libavformat-dev(or equivalent)
Platform Support
- Windows: Windows 10/11 (x64, ARM64)
- Linux: Ubuntu, Debian, Fedora, etc. (x64, ARM64)
- macOS: macOS 10.13+ (x64, ARM64)
Architecture
OwnAudioSharp uses a two-layer architecture:
- Engine Layer: Low-level platform-specific audio processing with real-time thread management
- API Layer: High-level thread-safe wrappers with lock-free ring buffers to prevent UI blocking
Documentation
- GitHub: https://github.com/ModernMube/OwnAudioSharp
- Documentation: https://modernmube.github.io/OwnAudioSharp/
License
MIT License - Copyright (c) 2025 ModernMube
| 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
- Avalonia (>= 12.0.4)
- Microsoft.ML.OnnxRuntime (>= 1.26.0)
- OwnAudioSharp.Midi (>= 3.1.0)
- OwnAudioVst (>= 1.6.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on OwnAudioSharp:
| Package | Downloads |
|---|---|
|
OwnAudioSharp.Mt3
MT3 multi-track music transcription backend for OwnAudioSharp. Adds an INoteTranscriber that separates instruments instead of collapsing them, which is what chord detection wants. The transformer runs natively in Rust on ONNX Runtime; the model weights are not included and are loaded from a path you provide. Desktop only. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.8-preview.8 | 68 | 9/6/2026 |
| 4.0.7 | 110 | 9/3/2026 |
| 4.0.7-preview.2 | 102 | 8/29/2026 |
| 4.0.6 | 126 | 8/27/2026 |
| 4.0.6-preview.1 | 87 | 8/25/2026 |
| 4.0.5 | 128 | 8/24/2026 |
| 4.0.4 | 167 | 8/16/2026 |
| 4.0.4-preview.1 | 79 | 8/9/2026 |
| 4.0.3 | 155 | 8/8/2026 |
| 4.0.1 | 171 | 8/3/2026 |
| 4.0.0 | 168 | 7/27/2026 |
| 4.0.0-preview.35 | 73 | 7/20/2026 |
| 4.0.0-preview.28 | 77 | 7/12/2026 |
| 3.1.7 | 250 | 6/23/2026 |
| 3.1.3 | 156 | 6/14/2026 |
| 3.1.0 | 163 | 6/13/2026 |
| 3.0.14 | 314 | 6/4/2026 |
| 3.0.13 | 133 | 6/2/2026 |