ggml_library_flutter 0.0.3
ggml_library_flutter: ^0.0.3 copied to clipboard
Whisper Is Library for transcribe sound wav AKA Speech To Text Or Extract Text From Audio
Ggml Library #
Ggml Library Is library for transcribe sound to wav
Copyright (c) 2024 GLOBAL CORPORATION - GENERAL DEVELOPER
đī¸ Docs #
- Documentation
- Youtube
- Telegram Support Group
- Contact Developer (check social media or readme profile github)
đī¸ Features #
- â đąī¸ Cross Platform support (Device, Edge Severless functions)
- â đī¸ Standarization Style Code
- â â¨ī¸ Cli (Terminal for help you use this library or create project)
- â đĨī¸ Api (If you developer bot / userbot you can use this library without interact cli just add library and use đī¸)
- â đ§Šī¸ Customizable Extension (if you want add extension so you can more speed up on development)
- â â¨ī¸ Pretty Information (user friendly for newbie)
âī¸ Fun Fact #
This library 100% use on every my create project (App, Server, Bot, Userbot) This library 100% support all models from whisper.cpp (depending on your device specs, if high then it can be up to turbo, but if low, just choose tiny/small)
đī¸ Proggres #
- 10-02-2025 Starting Release Stable With core Features
Resources #
đĨī¸ Install Library #
- Dart
dart pub add ggml_library_dart
- Flutter
flutter pub add ggml_library_flutter
đī¸ Quick Start #
Example Quickstart script minimal for insight you or make you use this library because very simple
import 'dart:io';
import 'package:general_lib/general_lib.dart';
import 'package:ggml_library_dart/ggml_library_dart.dart';
void main(List<String> args) async {
print("start");
/// make sure you have downloaded model
final String whisperModelPath =
"../../../../../big-data/ai/whisper-ggml/ggml-small.bin";
final GgmlLibrary ggmlLibrary = GgmlLibrary(
libraryWhisperPath: "../ggml_library_flutter/linux/libwhisper.so",
);
await ggmlLibrary.ensureInitialized();
final isLoadedModel = ggmlLibrary.loadWhisperModel(
whisperModelPath: whisperModelPath,
);
if (isLoadedModel == false) {
print("cant loaded");
exit(1);
}
final File fileWav = File(
"../../native_lib/lib/whisper.cpp/samples/jfk.wav",
);
await Future.delayed(Duration(seconds: 2));
DateTime dateTime = DateTime.now();
final result = await ggmlLibrary.transcribeToJson(
fileWav: fileWav,
useCountProccecors: 1,
useCountThread: (Platform.numberOfProcessors / 2).toInt(),
);
print("seconds: ${DateTime.now().difference(dateTime)}");
result.printPretty();
exit(0);
}
Reference #
- Azkadev-Whisper Original Idea and concept library + Developer Maintance this library
- Ggerganov-whisper.cpp ffi bridge main script so that this program can run
Copyright (c) 2024 GLOBAL CORPORATION - GENERAL DEVELOPER
Example Project Use This Library #
Telegram Application with redesign with new some features userbot and other features which is not officially provided on Telegram First this project open source but we closed it to close source because our program is easy to read and allows other people to edit the source code and then use it for criminal acts
CHAT PAGE | SIGN UP PAGE | HOME PAGE | GUIDE PAGE |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |