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

A Flutter plugin for on-device speech recognition and transcription using WhisperKit.

flutter_whisper_kit #

A Flutter plugin that provides on-device speech recognition capabilities using WhisperKit.

Features #

🧠 DeepWiki #

  • High-quality on-device speech recognition
  • No data sent to external servers
  • Support for multiple model sizes (tiny to large)
  • File-based audio transcription
  • Real-time microphone transcription
  • Progress tracking for model downloads
  • Configurable transcription options

Platform Support #

Platform Minimum Version
iOS 16.0+
macOS 13.0+

Android support is planned for future releases.

Usage #

Basic Usage #

import 'package:flutter_whisper_kit/flutter_whisper_kit.dart';

// Create an instance of the plugin
final whisperKit = FlutterWhisperKit();

// Load a model
final result = await whisperKit.loadModel(
  variant: 'tiny-en',
  modelRepo: 'argmaxinc/whisperkit-coreml',
  redownload: false,
);
print('Model loaded: $result');

// Transcribe from a file
final transcription = await whisperKit.transcribeFromFile(
  '/path/to/audio/file.mp3',
  options: DecodingOptions(
    task: DecodingTask.transcribe,
    language: 'en',
  ),
);
print('Transcription: $transcription');

Real-time Transcription #

import 'package:flutter_whisper_kit/flutter_whisper_kit.dart';

// Create an instance of the plugin
final whisperKit = FlutterWhisperKit();

// Load a model
await whisperKit.loadModel(variant: 'tiny-en');

// Start listening to the transcription stream
whisperKit.transcriptionStream.listen((transcription) {
  print('Real-time transcription: $transcription');
});

// Start recording
await whisperKit.startRecording(
  options: DecodingOptions(
    task: DecodingTask.transcribe,
    language: 'en',
  ),
);

// Stop recording after some time
await Future.delayed(Duration(seconds: 10));
final finalTranscription = await whisperKit.stopRecording();
print('Final transcription: $finalTranscription');
17
likes
0
points
107
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for on-device speech recognition and transcription using WhisperKit.

Repository (GitHub)
View/report issues

Topics

#whisper #tts #speech-to-text

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_whisper_kit

Packages that implement flutter_whisper_kit