Skip to main content

vad_plus 0.4.0 copy "vad_plus: ^0.4.0" to clipboard
vad_plus: ^0.4.0 copied to clipboard

Silero VAD ONNX voice activity detection FFI plugin for Flutter.

0.4.0 #

Breaking: now requires Flutter 3.44+, iOS 15.1+, and macOS 14+.

  • Fix Android release builds: R8 removed the classes reached only through JNI, so initialize() failed with Failed to create VAD handle. The plugin now ships keep rules, which also stop ONNX Runtime errors from crashing release builds.
  • Fix lost, repeated, and phantom events when Dart reads them late, as with a processAudio() loop over a long file or a stalled main thread. Native code freed each event after 0.5 to 1 s whether or not it had been read. Dart now frees it after reading.
  • Fix stop() and dispose() blocking the main thread on Android for 300 ms or more while the microphone shut down. start() right after stop() now waits for that instead.
  • Add Swift Package Manager support on iOS and macOS. CocoaPods keeps working.
  • Support Android Gradle Plugin 9, with built-in Kotlin on or off.
  • Update ONNX Runtime on iOS and macOS to 1.24.x, the same line as Android, on both SPM and CocoaPods.
  • Reduce Android Java heap allocation during audio processing by about 95%. Events and speech audio are unchanged.
  • Move the iOS and macOS sources into one shared darwin/ directory.

0.3.1 #

  • Re-publish of 0.3.0 (no functional changes).

0.3.0 #

  • Fix pre-speech padding: segments now start with the full preSpeechPadFrames (~96 ms) of lead-in and no longer duplicate the triggering frame.
  • Implement endSpeechPadFrames: emitted segments keep a short silence tail after the last voiced frame instead of the whole ~768 ms redemption window (previously the parameter had no effect).
  • Fix per-event native memory leak on Android — event payloads are now freed on a short grace timer after delivery, mirroring the iOS/macOS cleanup.
  • Fail with an error when a provided modelPath does not exist on Android (previously fell back to the bundled model silently).
  • Re-extract the bundled model on every Android init so a plugin update is never shadowed by a stale cached copy.
  • Release the native handle when initialize() fails, so a failed instance no longer leaks and can be retried.
  • Align VADEvent in src/vad_plus.h with the actual native ABI (flat struct) and regenerate the FFI bindings — dart run ffigen is now safe to re-run.

0.2.1 #

  • Complete README: quick start, events, configuration, VAD algorithm, processAudio mode, per-platform permissions, architecture, and known limitations.
  • Restructure the example app into feature-based modules.

0.2.0 #

  • Require Dart SDK ^3.9.0

0.1.2 #

  • Update ffi dependency to ^2.2.0

0.1.1 #

  • Code quality optimization

0.1.0 #

  • Add support for 16KB memory page size on Android.

0.0.1 #

  • Initial release.
2
likes
160
points
756
downloads

Documentation

API reference

Publisher

verified publisherthemiracle.dev

Weekly Downloads

Silero VAD ONNX voice activity detection FFI plugin for Flutter.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

ffi, flutter, plugin_platform_interface

More

Packages that depend on vad_plus

Packages that implement vad_plus