OwnAudioSharp 1.0.65

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

OwnAudio is a platform-independent C# audio library that provides a high-level API for audio playback, recording, and processing. By default, it uses Miniaudio for audio I/O. If FFmpeg or PortAudio is installed, it automatically uses Portaudio and FFmpeg. This way, it can work with MiniAudio without any external dependencies. The implementation of MiniAudio also allowed the API to be used on mobile platforms. It is possible to manipulate audio data in real time (pitch change, tempo change, and various real-time effects). The API is able to detect musical chords from audio and create a timed list of chords. A feature has been built in to help game developers manage sound effects.

Features

  • Cross-platform compatibility (Windows, macOS, Linux, Android, iOS)
  • Audio playbook with support for various formats via FFmpeg, or MiniAudio (mp3, wav, flac) formats
  • Audio recording capabilities through input devices
  • Time stretching and pitch shifting using SoundTouch
  • Mixing multiple audio sources
  • Volume control and custom audio processing
  • Seeking within audio files
  • Real-time audio processing with custom sample processors
  • Audio data visualize customizable waveform display

You can find all the information on the website!

OwnAudioSharp Website

🎵 NEW: Professional Audio Matchering in OwnAudioSharp!

Studio-grade mastering with advanced AI-driven analysis - single line of code!

// Process source audio to match reference characteristics
analyzer.ProcessEQMatching("source.wav", "reference.wav", "mastered.wav");

// Optimize for different playback systems
analyzer.ProcessWithPreset("source.wav", "hifi_output.wav", PlaybackSystem.HiFiSpeakers);

What you get:

  • Intelligent 10-band EQ matching
  • Multiband compression across 4 frequency bands
  • Psychoacoustic weighting and spectral masking
  • Distortion-protected automatic processing

🎯 Result: Your source audio will sound exactly like the reference track - professional mastering studio quality.

Support My Work

If you find the code useful or use it for commercial purposes, invite me for a coffee!

<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>

Basic Usage

Here's a quick example of how to use OwnAudio to play an audio file:

using Ownaudio;
using Ownaudio.Sources;
using System;
using System.Threading.Tasks;

try 
{
    // Initialize OwnAudio
    OwnAudio.Initialize();

    // Create a source manager
    var sourceManager = SourceManager.Instance;

    // Add an audio file
    await sourceManager.AddOutputSource("path/to/audio.mp3");

    // Play the audio
    sourceManager.Play();

    // Wait for the audio to finish
    Console.WriteLine("Press any key to stop playback...");
    Console.ReadKey();

    // Stop playback and clean up
    sourceManager.Stop();
}
catch (Exception ex)
{
    Console.WriteLine($"Audio error: {ex.Message}");
}
finally
{
    OwnAudio.Free();
}

Acknowledgements

Special thanks to the creators of the following repositories, whose code was instrumental in the development of OwnAudio:

  • Bufdio - Audio playback library for .NET
  • FFmpeg.AutoGen - FFmpeg auto generated unsafe bindings for C#/.NET
  • soundtouch.net - .NET wrapper for the SoundTouch audio processing library
  • Avalonia - Cross-platform .NET UI framework
  • SoundFlow - A powerful and extensible cross-platform .NET audio engine.
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.0.65 108 9/14/2025
1.0.62 59 9/13/2025
1.0.25 147 9/7/2025
1.0.5 125 9/11/2025
1.0.0 169 8/24/2025
0.94.56 117 8/22/2025
0.91.35 82 8/15/2025
0.89.65 229 7/26/2025
0.89.45 317 7/20/2025
0.43.19 88 7/5/2025
0.31.45 165 6/17/2025
0.30.12 243 6/9/2025
0.25.92 231 6/9/2025
0.25.91 203 6/8/2025
0.25.90 202 6/8/2025
0.25.82 129 6/6/2025
0.25.78 111 6/1/2025
0.25.62 493 5/20/2025
0.25.7 421 5/20/2025