Skip to main content
net10.0net10.0-android36.0net10.0-ios26.0net10.0-maccatalyst26.0net10.0-macos26.0net10.0-windows10.0.19041

Shiny Audio - Cross-platform audio capture and playback for .NET MAUI

Published
Jul 6, 2026
3mo ago
Total Downloads
4.6K
4,633

Install

dotnet add package Shiny.Audio --version 3.0.0-beta-0003
ProductVersions
.NET
net10.0net10.0-android36.0net10.0-ios26.0net10.0-maccatalyst26.0net10.0-macos26.0net10.0-windows10.0.19041

README

Shiny.Audio

Cross-platform audio capture and playback for .NET MAUI, iOS, Mac Catalyst, macOS, Android, Windows, and Browser (WebAssembly).

Shiny.Audio provides the low-level audio primitives that back Shiny.Speech, but is usable on its own:

  • IAudioSource — microphone capture that streams raw PCM audio (16kHz, 16-bit, mono) via a thread-safe PipeStream, with runtime permission handling (RequestAccess / AccessState).
  • IAudioPlayer — stream playback (e.g. MP3) with optional normalized AudioLevelChanged metering for VU-style UI.

Getting Started

using Shiny;

builder.Services.AddAudioServices(); // registers IAudioSource + IAudioPlayer
using Shiny.Audio;

public class Recorder(IAudioSource audioSource)
{
    public async Task RecordAsync(CancellationToken ct)
    {
        if (await audioSource.RequestAccess() != AccessState.Available)
            return;

        var pcmStream = await audioSource.StartCaptureAsync(ct);
        // consume pcmStream ...
        await audioSource.StopCaptureAsync();
    }
}
Platform Audio Capture Audio Playback
iOS 15+ AVAudioEngine AVAudioPlayer
Android 26+ AudioRecord MediaPlayer
Windows 10 19041+ AudioGraph MediaPlayer
Browser (WASM) Web Audio API (getUserMedia + ScriptProcessorNode) HTML5 Audio

See https://shinylib.net/speech for full documentation.

Changes from Previous Version

No structural changes between v3.0.0-beta-0001 and v3.0.0-beta-0003.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 6 target frameworks; confirm the exact target used by your application.The published metadata declares 14 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.