vosk_flutter_service 0.1.0
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.swiftmanifests 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, andpermission_handlerunderlib/src/stubs/to enable cross-platform analysis. lib/src/ffi_provider.dartas a single re-export point for FFI libraries, switching between real and stub implementations based ondart.library.io.
Changed #
- Replaced
dart:isolate/Isolate.runwith Flutter'scompute()inModelLoaderfor better cross-platform compatibility (Web included). - Updated
PermissionServiceto guard permission requests behindPlatform.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.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.mdwith 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
AVAudioSessionconfiguration. - 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
SpeechServicelistener logic in Dart for better performance and reliability. - Fixed various linting issues across the codebase.