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
<PackageReference Include="Plugin.Maui.VoiceOrb.Audio" Version="1.0.0" />
<PackageVersion Include="Plugin.Maui.VoiceOrb.Audio" Version="1.0.0" />
<PackageReference Include="Plugin.Maui.VoiceOrb.Audio" />
paket add Plugin.Maui.VoiceOrb.Audio --version 1.0.0
#r "nuget: Plugin.Maui.VoiceOrb.Audio, 1.0.0"
#:package Plugin.Maui.VoiceOrb.Audio@1.0.0
#addin nuget:?package=Plugin.Maui.VoiceOrb.Audio&version=1.0.0
#tool nuget:?package=Plugin.Maui.VoiceOrb.Audio&version=1.0.0
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
Android — Platforms/Android/AndroidManifest.xml
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
iOS / Mac Catalyst — Info.plist
<key>NSMicrophoneUsageDescription</key>
<string>Used to react to your voice.</string>
| Product | Versions 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. |
-
net10.0-android36.0
- Microsoft.Maui.Controls (>= 10.0.90)
- Plugin.Maui.Audio (>= 4.0.0)
- Plugin.Maui.VoiceOrb (>= 1.0.0)
-
net10.0-ios26.0
- Microsoft.Maui.Controls (>= 10.0.90)
- Plugin.Maui.Audio (>= 4.0.0)
- Plugin.Maui.VoiceOrb (>= 1.0.0)
-
net10.0-maccatalyst26.0
- Microsoft.Maui.Controls (>= 10.0.90)
- Plugin.Maui.Audio (>= 4.0.0)
- Plugin.Maui.VoiceOrb (>= 1.0.0)
-
net10.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 10.0.90)
- Plugin.Maui.Audio (>= 4.0.0)
- Plugin.Maui.VoiceOrb (>= 1.0.0)
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 |