https://github.com/general-developer/whisper_library
Whisper Is Library for transcribe sound wav AKA Speech To Text Or Extract Text From Audio
https://github.com/general-developer/whisper_library
ai artificial-intelligence dart flutter ggml machine-learning ml openai speech-to-text transcribe translate whisper
Last synced: 7 months ago
JSON representation
Whisper Is Library for transcribe sound wav AKA Speech To Text Or Extract Text From Audio
- Host: GitHub
- URL: https://github.com/general-developer/whisper_library
- Owner: General-Developer
- License: apache-2.0
- Created: 2025-02-10T07:35:19.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-03-29T13:02:47.000Z (8 months ago)
- Last Synced: 2025-03-29T13:36:38.593Z (8 months ago)
- Topics: ai, artificial-intelligence, dart, flutter, ggml, machine-learning, ml, openai, speech-to-text, transcribe, translate, whisper
- Language: C++
- Homepage: https://www.youtube.com/@general_dev
- Size: 17.4 MB
- Stars: 20
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yaml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Whisper Library
**Whisper Library** Is library for transcribe sound to wav
[](https://youtu.be/drlqUwJEOg4)
[](https://www.youtube.com/@Global_Corporation)
**Copyright (c) 2024 GLOBAL CORPORATION - GENERAL DEVELOPER**
## đī¸ Docs
1. [Documentation](https://youtube.com/@GENERAL_DEV)
2. [Youtube](https://youtube.com/@GENERAL_DEV)
3. [Telegram Support Group](https://t.me/DEVELOPER_GLOBAL_PUBLIC)
4. [Contact Developer](https://github.com/General-Developer) (check social media or readme profile github)
## đī¸ Features
1. [x] đąī¸ **Cross Platform** support (Device, Edge Severless functions)
2. [x] đī¸ **Standarization** Style Code
3. [x] â¨ī¸ **Cli** (Terminal for help you use this library or create project)
4. [x] đĨī¸ **Api** (If you developer bot / userbot you can use this library without interact cli just add library and use đī¸)
5. [x] đ§Šī¸ **Customizable Extension** (if you want add extension so you can more speed up on development)
6. [x] â¨ī¸ **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](https://github.com/ggerganov/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
1. [MODEL](https://huggingface.co/ggerganov/whisper.cpp/tree/main)
### đĨī¸ Install Library
1. **Dart**
```bash
dart pub add whisper_library_dart
```
2. **Flutter**
```bash
flutter pub add whisper_library_flutter ggml_library_flutter
```
## đī¸ Quick Start
Example Quickstart script minimal for insight you or make you use this library because very simple
```dart
import 'dart:io';
import 'package:general_lib/general_lib.dart';
import 'package:whisper_library_dart/whisper_library_dart.dart';
void main(List args) async {
print("start");
/// make sure you have downloaded model
final String whisperModelPath =
"../../../../../big-data/ai/whisper-ggml/ggml-small.bin";
final WhisperLibrary whisperLibrary = WhisperLibrary(
libraryWhisperPath: "../whisper_library_flutter/linux/libwhisper.so",
);
await whisperLibrary.ensureInitialized();
final isLoadedModel = whisperLibrary.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 whisperLibrary.transcribeToJson(
fileWav: fileWav,
useCountProccecors: 1,
useCountThread: (Platform.numberOfProcessors / 2).toInt(),
);
print("seconds: ${DateTime.now().difference(dateTime)}");
result.printPretty();
exit(0);
}
```
## Reference
1. [Azkadev-Whisper](https://github.com/azkadev/whisper)
Original Idea and concept library + Developer Maintance this library
2. [Ggerganov-whisper.cpp](https://github.com/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
- [Whisper Application](https://github.com/General-Developer/whisper_library/tree/main/examples/whisper_app)
Minimal simple application example of using whisper library [Youtube Video](https://youtu.be/U-5EDMk0UgE)
| Mobile | Desktop |
|-----------------------------------------------------------------------------------------------------------------------------------------|---------|
| [](https://youtu.be/U-5EDMk0UgE) | [](https://youtu.be/U-5EDMk0UgE) |