Diagnostics & Crash-Reporting Improvements
Adds an onLog callback to VadHandler.create for routing the package's production log lines into your app's crash reporter (Crashlytics, Sentry, Bugsnag, etc.), plus an always-on breadcrumb logged immediately before each ONNX
Runtime session creation on native platforms. Useful for diagnosing native crashes inside libonnxruntime.so on low-end Android devices.
Highlights:
- Add optional
VadLogCallback? onLogparameter toVadHandler.createand matchingVadLogCallbacktypedef exported frompackage:vad/vad.dart - Emit always-on
VadModel: creating OrtSession (model=... bytes=... sampleRate=... os=... osVersion=...)breadcrumb before each native session creation — the last line in logcat before any crash insidelibonnxruntime.so - Route all non-debug failures through
onLogwhen set: session-creation errors (native + web), inference errors, frame-processing errors, audio-stream and microphone-permission failures - README: add Reporting Issues troubleshooting section with
adb logcatcapture instructions and a Crashlytics wiring example
No breaking changes — onLog is optional and defaults to current behavior (print/logcat).
Full Changelog:
See CHANGELOG.md