Plugin.Maui.VoiceOrb.Audio 1.0.0

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

Plugin.Maui.VoiceOrb.Audio

Microphone capture for Plugin.Maui.VoiceOrb, built on Plugin.Maui.Audio.

Install this only if you want the orb driven by the microphone. The core package has no audio dependency.

Use

using Plugin.Maui.VoiceOrb;   // same namespace as the core package

var mic = new MicrophoneAudioLevelSource();
mic.LevelChanged += (_, level) => Orb.SetAudioLevel(level);   // thread-safe

if (await mic.StartAsync())
    Orb.SetState(OrbState.Listening);
else
    // permission denied, or no capture device

StartAsync requests microphone permission for you and returns false if it was denied, so you can fall back rather than throw. Dispose or StopAsync when you are done.

It implements IAudioLevelSource, so it drops in anywhere the core package's SimulatedAudioLevelSource is used.

How the level is computed

Raw 16-bit PCM frames are reduced to RMS, then mapped to 0..1 through a dBFS window (-55 dB to -12 dB) rather than used directly. Raw RMS spends nearly all its time bunched near zero, which barely moves the orb; the dB mapping makes it track loudness the way an ear hears it.

Permissions

AndroidPlatforms/Android/AndroidManifest.xml

<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />

iOS / Mac CatalystInfo.plist

<key>NSMicrophoneUsageDescription</key>
<string>Used to react to your voice.</string>
Product Compatible and additional computed target framework versions.
.NET net10.0-android36.0 is compatible.  net10.0-ios26.0 is compatible.  net10.0-maccatalyst26.0 is compatible.  net10.0-windows10.0.19041 is compatible. 
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.0 48 9/8/2026