mockingbird_android
The Android implementation of the mockingbird
plugin. It is endorsed, so depending on mockingbird includes it automatically.
What it bundles
- The Mockingbird engine compiled from source by the plugin's CMake build: capture,
RNNoise, libfvad, the anomaly gate, the Opus encoder, and the ONNX Runtime
detectors (Silero VAD and YAMNet) through the
onnxruntime-androidAAR. - Microphone capture through Oboe, with miniaudio as the fallback backend.
- 16 KB page alignment for the shared library, as Android 15 requires.
The Dart side opens libmockingbird.so with DynamicLibrary.open and talks to it
over dart:ffi. There are no platform channels.
Requirements
| Setting | Value |
|---|---|
| minSdk | 21 |
| compileSdk | 37 |
| NDK | r28 or newer; the plugin pins r30 |
| Android Gradle plugin | 9.1 or newer, with or without built-in Kotlin |
| ABIs | arm64-v8a, x86_64 |
Add the microphone permission to your app's manifest and request it at runtime before starting an engine that captures:
<uses-permission android:name="android.permission.RECORD_AUDIO" />
Engines created with MockingbirdBackend.hostPcm do not touch the microphone and
need no permission.
Libraries
- mockingbird_android
- The android implementation of the mockingbird plugin.