OwnAudioSharp.Mobile
2.6.0
dotnet add package OwnAudioSharp.Mobile --version 2.6.0
NuGet\Install-Package OwnAudioSharp.Mobile -Version 2.6.0
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.Mobile" Version="2.6.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OwnAudioSharp.Mobile" Version="2.6.0" />
<PackageReference Include="OwnAudioSharp.Mobile" />
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.Mobile --version 2.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OwnAudioSharp.Mobile, 2.6.0"
#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.Mobile@2.6.0
#: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.Mobile&version=2.6.0
#tool nuget:?package=OwnAudioSharp.Mobile&version=2.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
OwnAudioSharp.Mobile
Cross-platform audio library for .NET mobile applications
OwnAudioSharp.Mobile is a professional-grade audio engine providing high-performance audio playback, recording, and processing for Android and iOS with zero external dependencies.
Key Features
- Native Audio Engine: Built on MiniAudio for high-performance, low-latency audio processing
- Managed Wrappers: Platform-specific managed engines with Android AudioTrack/AudioRecord and iOS Audio Queue Services integration
- Multi-format Support: Built-in decoders for MP3, WAV, and FLAC
- Real-time Processing: Zero-allocation design with lock-free buffers for professional-grade performance
- Advanced Audio Features:
- Network Synchronization: Multi-device audio sync across WiFi (< 20ms accuracy)
- Master Clock: Sample-accurate timeline synchronization for multi-track playback
- 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
// Perfect for: Party mode, car audio sync, wireless speakers
// Server mode (main phone/tablet)
await OwnaudioNet.StartNetworkSyncServerAsync(port: 9876);
// Client mode (other devices on WiFi)
await OwnaudioNet.StartNetworkSyncClientAsync(
serverAddress: null, // Auto-discovery on WiFi
allowOfflinePlayback: true);
// All devices play in perfect sync over WiFi
// Automatic reconnection if WiFi drops
// 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
Platform Support
- Android: Android 7.0 (API 24)+ (ARM64, x64)
- iOS: iOS 11.0+ (ARM64, x64 Simulator)
Mobile-Specific Features
- Optimized for mobile battery life
- Background audio playback support
- Integration with platform media controls
- Low-latency audio processing
Architecture
OwnAudioSharp.Mobile 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 | net9.0 is compatible. net9.0-android was computed. net9.0-android35.0 is compatible. net9.0-browser was computed. net9.0-ios was computed. net9.0-ios18.0 is compatible. 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.
-
net9.0
- Avalonia (>= 11.3.11)
- MathNet.Numerics (>= 5.0.0)
- Melanchall.DryWetMidi (>= 8.0.3)
- Microsoft.ML.OnnxRuntime (>= 1.23.2)
- OwnAudio.Logger (>= 2.5.3)
- OwnAudioVst (>= 1.4.0)
- System.Memory (>= 4.6.3)
- System.Numerics.Tensors (>= 10.0.2)
-
net9.0-android35.0
- Avalonia (>= 11.3.11)
- MathNet.Numerics (>= 5.0.0)
- Melanchall.DryWetMidi (>= 8.0.3)
- Microsoft.ML.OnnxRuntime (>= 1.23.2)
- OwnAudio.Logger (>= 2.5.3)
- OwnAudioVst (>= 1.4.0)
- System.Memory (>= 4.6.3)
- System.Numerics.Tensors (>= 10.0.2)
-
net9.0-ios18.0
- Avalonia (>= 11.3.11)
- MathNet.Numerics (>= 5.0.0)
- Melanchall.DryWetMidi (>= 8.0.3)
- Microsoft.ML.OnnxRuntime (>= 1.23.2)
- OwnAudio.Logger (>= 2.5.3)
- OwnAudioVst (>= 1.4.0)
- System.Memory (>= 4.6.3)
- System.Numerics.Tensors (>= 10.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.