Skip to content
pubscout

vosk_flutter_service

0.1.3, released 3 months ago by bechattaoui.dev

Flutter plugin for offline speech recognition using Vosk toolkit.

WASM-ready
$ flutter pub add vosk_flutter_service
Source repository

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.

Works with

Packages commonly used together with vosk_flutter_service: ones it builds on, ones built on it, and its own family.