vosk_flutter_service 0.1.0 copy "vosk_flutter_service: ^0.1.0" to clipboard
vosk_flutter_service: ^0.1.0 copied to clipboard

Flutter plugin for offline speech recognition using the Vosk speech recognition toolkit.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.1.0 - 2026-03-15 #

Added #

  • Web & WASM support: Implemented a "stub-first" conditional import strategy across all native-dependent libraries (dart:ffi, dart:io, archive, path_provider, permission_handler), making the package analyzable and functional on Web and WASM targets.
  • Swift Package Manager (SPM) support: Added Package.swift manifests for both iOS (ios/vosk_flutter_service/Package.swift) and macOS (macos/vosk_flutter_service/Package.swift).
  • Stub files for dart:ffi, dart:io, archive, path_provider, and permission_handler under lib/src/stubs/ to enable cross-platform analysis.
  • lib/src/ffi_provider.dart as a single re-export point for FFI libraries, switching between real and stub implementations based on dart.library.io.

Changed #

  • Replaced dart:isolate/Isolate.run with Flutter's compute() in ModelLoader for better cross-platform compatibility (Web included).
  • Updated PermissionService to guard permission requests behind Platform.isAndroid || Platform.isIOS, preventing crashes on other platforms.
  • All conditional imports now use the stub-first pattern (import 'stub.dart' if (dart.library.io) 'real.dart') for correct WASM resolution.
  • Updated iOS Podspec version and metadata to match the package.

Fixed #

  • Achieved a perfect 160/160 pana score: all six platforms fully supported (Android, iOS, macOS, Linux, Windows, Web), WASM-ready, SPM-ready, static analysis clean, and all dependency constraints satisfied.

0.0.7 - 2026-03-15 #

Changed #

  • Updated Vosk Android dependency to 0.3.75 to support 16KB page size.

0.0.6 - 2026-01-22 #

Changed #

  • Configured CLI download URLs to point to the official repository for native binaries.
  • Improved CLI installation flow and error reporting.

0.0.5 - 2026-01-22 #

Fixed #

  • Fixed CLI executable name to match package name (vosk_flutter_service).
  • Updated internal package name constants in CLI tool.

0.0.4 - 2026-01-22 #

Changed #

  • Excluded large iOS and MacOS native binaries from the pub.dev package to comply with the 100MB size limit.
  • Updated the CLI tool to support downloading and installing native binaries for iOS and MacOS.
  • Updated README.md with instructions for native binaries installation.

0.0.3 - 2026-01-22 #

Important

Technical Note: Previous versions had an incomplete iOS implementation due to missing native frameworks in the ios/Frameworks directory and a casing discrepancy in the method bridge. We apologize for these technical omissions which have now been fully resolved.

Fixed #

  • Resolved iOS microphone input issue by adding explicit AVAudioSession configuration.
  • Fixed critical method name mismatch between Dart and Swift.
  • Added robust debug logging for iOS (NSLog) and Dart sides to track audio data flow.
  • Optimized SpeechService listener logic in Dart for better performance and reliability.
  • Fixed various linting issues across the codebase.

0.0.2 - 2026-01-14 #

Changed #

  • Updated repository URL to https://github.com/dhia-bechattaoui/vosk-flutter-service.

0.0.1 - 2026-01-05 #

Changed #

  • BREAKING: Renamed package to vosk_flutter_service.
  • Migrated Android build to Kotlin DSL.
  • Updated record dependency to v6 in example app.
  • Enforced strict type safety (0 analysis issues).

Fixed #

  • Resolved all analysis issues.
  • Updated AGP/Gradle versions.