vosk_flutter_service
0.1.3, released 3 months ago by bechattaoui.dev
Flutter plugin for offline speech recognition using Vosk toolkit.
What it does
Provides offline speech-to-text functionality using the Vosk toolkit across multiple platforms. Supports loading models, creating recognizers, processing audio data, and handling microphone input.
AI-written summary of version 0.1.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need speech recognition that works completely offline.
- You want on-device processing for privacy or connectivity reasons.
Skip it when
- You require cloud-based large vocabulary speech recognition engines.
- You are targeting Web platforms where the plugin has limited native binary support.
Strengths
- Works completely offline without sending audio data to external servers.
- Supports multiple platforms including Android, iOS, macOS, Windows, and Linux.
Weaknesses
- Requires manual installation of native binaries on desktop and iOS platforms.
- Web platform support is limited or stub-based.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 10
Requires downloading native binaries via CLI for iOS, macOS, Linux, and Windows, plus configuring ProGuard and microphone permissions on Android.
final vosk = VoskFlutterPlugin.instance();
final enSmallModelPath = await ModelLoader()
.loadFromAssets('assets/models/vosk-model-small-en-us-0.15.zip');
final recognizer = await vosk.createRecognizer(
model: model,
sampleRate: sampleRate,
);Alternatives
Packages that do the same job and could replace vosk_flutter_service.
- whisper_ggml
On-device speech-to-text for Flutter powered by whisper.cpp
85Compare - ml_algo
Native Dart implementation of machine learning algorithms and performance evaluation tools.
82Compare - ml_preprocessing
Popular data preprocessing algorithms for machine learning in Dart.
50Compare - flutter_whisper_kit
On-device speech recognition and transcription using WhisperKit on iOS and macOS
42Compare
Works with
Packages commonly used together with vosk_flutter_service: ones it builds on, ones built on it, and its own family.
- archivevosk_flutter_service depends on itEncodes and decodes archive and compression formats such as zip, tar, gzip, and zlib.
- package_configvosk_flutter_service depends on itRead and write Dart package configuration files.
- pubspec_parsevosk_flutter_service depends on itParse pubspec.yaml files with a type‑safe API and detailed error reporting.
- ffivosk_flutter_service depends on itUtilities for working with Foreign Function Interface (FFI) code in Dart.
- argsvosk_flutter_service depends on itLibrary for parsing raw command-line arguments into options and values using GNU and POSIX styles.
- path_providervosk_flutter_service depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- permission_handlervosk_flutter_service depends on itCross-platform API to check and request permissions on iOS, Android, Web, and Windows.