earshot_capture_android 0.1.0
earshot_capture_android: ^0.1.0 copied to clipboard
Pre-release: the Android implementation of earshot_capture, for on-device microphone capture and permission status.
earshot_capture_android #
Warning
Pre-release (0.x). The public API may still change in 0.x. See the feature checklist for what works today.
The Android implementation of earshot_capture. It is endorsed, so apps should depend on earshot_capture and get this package automatically.
Part of earshot: on-device ambient listening with no network access, where no audio leaves the device.
Microphone setup #
Your app declares microphone access, not this package:
- iOS and macOS: add
NSMicrophoneUsageDescriptiontoInfo.plist. On macOS, also add thecom.apple.security.device.audio-inputentitlement. - Android:
RECORD_AUDIOis merged into your app's manifest byearshot_capture_android. Your app still asks the user at runtime.