OwnAudioSharp 2.0.0
See the version list below for details.
dotnet add package OwnAudioSharp --version 2.0.0
NuGet\Install-Package OwnAudioSharp -Version 2.0.0
<PackageReference Include="OwnAudioSharp" Version="2.0.0" />
<PackageVersion Include="OwnAudioSharp" Version="2.0.0" />
<PackageReference Include="OwnAudioSharp" />
paket add OwnAudioSharp --version 2.0.0
#r "nuget: OwnAudioSharp, 2.0.0"
#:package OwnAudioSharp@2.0.0
#addin nuget:?package=OwnAudioSharp&version=2.0.0
#tool nuget:?package=OwnAudioSharp&version=2.0.0
<div align="center"> <img src="Ownaudiologo.png" alt="Logo" width="600"/> </div>
<a href="https://www.buymeacoffee.com/ModernMube"> <img src="https://img.shields.io/badge/Support-Buy%20Me%20A%20Coffee-orange" alt="Buy Me a Coffee"> </a>
<a href="https://www.nuget.org/packages/OwnAudioSharp"> <img src="https://img.shields.io/badge/Nuget-OwnAudioSharp%20Nuget%20Package-blue" alt="OwnAudioSharp Package"> </a>
<a href="https://github.com/ModernMube/OwnAudioSharpDemo"> <img src="https://img.shields.io/badge/Sample-OwnAudioSharp%20Demo%20Application-darkgreen" alt="OwnAudioSharp Demo"> </a>
OwnAudioSharp is a cross-platform C# audio library providing professional-grade audio playback, recording, and processing. Built with pure managed code using native system audio APIs - no external dependencies required.
⚠️ Important Notice
Version 2.0.0 introduces major improvements!
Pre-2.0.0 versions relied on native libraries (miniaudio, portaudio, ffmpeg) and were less optimized. Starting from version 2.0.0, OwnAudioSharp operates with zero external dependencies using a fully managed audio engine.
Key changes:
- ✅ Fully managed audio engine across all platforms
- ✅ ~90% backward compatibility with previous API
- ✅ Significant performance improvements
- ⚠️ Legacy APIs marked as
[Obsolete]- will be removed in future versions
Migration recommendation: Use version 2.0.0 or later for all new projects. The new managed engine offers superior performance and maintainability.
✨ Key Features
- Cross-platform: Windows (WASAPI), macOS (Core Audio), Linux (PulseAudio), iOS & Android (in progress)
- Dual API layers: Core API (low-level control) and NET API (high-level features)
- Audio playback: Support for MP3, WAV, FLAC and other formats
- Real-time processing: Pitch shifting, tempo control, effects
- Audio mixing: Multi-source mixing with synchronized playback
- Professional mastering: AI-driven audio matchering and EQ analysis
- Chord detection: Automatic musical chord recognition
- Zero-allocation: Optimized performance for real-time usage
📦 Installation
NuGet Package Manager
Install-Package OwnAudioSharp
.NET CLI
dotnet add package OwnAudioSharp
Requirements
- .NET 8.0 or later
- No external dependencies
📚 Documentation
Complete documentation is available on the official website:
<a href="https://modernmube.github.io/OwnAudioSharp/"> <img src="https://img.shields.io/badge/Documentation-OwnAudioSharp%20Website-blue" alt="Documentation" width="350"> </a>
🚀 Quick Start Example
using Ownaudio.Core;
using Ownaudio.Decoders;
// Create audio engine with default settings
using var engine = AudioEngineFactory.CreateDefault();
engine.Initialize(AudioConfig.Default);
engine.Start();
// Create decoder for audio file
using var decoder = AudioDecoderFactory.Create(
"music.mp3",
targetSampleRate: 48000,
targetChannels: 2
);
// Decode and play frames
while (true)
{
var result = decoder.DecodeNextFrame();
if (result.IsEOF) break;
engine.Send(result.Frame.Samples);
}
engine.Stop();
💡 Support
If you find this library useful or use it for commercial purposes, consider supporting the development:
<a href="https://www.buymeacoffee.com/ModernMube" target="_blank"> <img src="https://cdn.buymeacoffee.com/buttons/v2/arial-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;"> </a>
📄 License
See the LICENSE file for details.
🙏 Acknowledgements
Special thanks to the creators of:
- Bufdio - Audio playback library for .NET
- FFmpeg.AutoGen - FFmpeg bindings for C#/.NET
- soundtouch.net - .NET wrapper for SoundTouch
- Avalonia - Cross-platform .NET UI framework
- SoundFlow - Cross-platform .NET audio engine
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. |
-
net8.0
- Avalonia (>= 11.3.7)
- MathNet.Numerics (>= 5.0.0)
- Melanchall.DryWetMidi (>= 8.0.2)
- Microsoft.ML.OnnxRuntime (>= 1.23.1)
- SoundTouch.Net (>= 2.3.2)
- System.Memory (>= 4.6.3)
- System.Numerics.Tensors (>= 9.0.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.15 | 0 | 11/5/2025 |
| 2.0.0 | 34 | 11/4/2025 |
| 1.0.68 | 232 | 9/21/2025 |
| 1.0.65 | 152 | 9/14/2025 |
| 1.0.62 | 100 | 9/13/2025 |
| 1.0.25 | 188 | 9/7/2025 |
| 1.0.5 | 177 | 9/11/2025 |
| 1.0.0 | 207 | 8/24/2025 |
| 0.94.56 | 153 | 8/22/2025 |
| 0.91.35 | 111 | 8/15/2025 |
| 0.89.65 | 280 | 7/26/2025 |
| 0.89.45 | 332 | 7/20/2025 |
| 0.43.19 | 108 | 7/5/2025 |
| 0.31.45 | 191 | 6/17/2025 |
| 0.30.12 | 267 | 6/9/2025 |
| 0.25.92 | 256 | 6/9/2025 |
| 0.25.91 | 230 | 6/8/2025 |
| 0.25.90 | 230 | 6/8/2025 |
| 0.25.82 | 155 | 6/6/2025 |
| 0.25.78 | 144 | 6/1/2025 |
| 0.25.62 | 523 | 5/20/2025 |
| 0.25.7 | 445 | 5/20/2025 |