Cross-platform audio engine library for mobile platforms (Android and iOS)
$ dotnet add package OwnAudioSharp.MobileCross-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.
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
OwnAudioSharp.Mobile uses a two-layer architecture:
MIT License - Copyright (c) 2025 ModernMube