I created this app to testing package whisper dart into Flutter. I tested only in Android!
What did i do?
-
imported package whisper_dart in pubspec
-
i copied file libwhisper.so into folder android/app/src/main/jniLibs
-
i added code below in file android/app/build.gradle
sourceSets { main.java.srcDirs += 'src/main/kotlin' main { jniLibs.srcDirs = ['src/main/jniLibs'] } }
-
Only run flutter app
-
into Flutter app, select set Model if you dont have, download it in https://huggingface.co/datasets/ggerganov/whisper.cpp/tree/main in the test i used ggml-base.bin (148mb)
-
select on wav file, to transcribe for example https://github.com/ggerganov/whisper.cpp/blob/master/samples/jfk.wav
-
click in "To Start Transcribe Audio".. It's running. Only problem that take a long time to transcribe I'm try to understand why
If you have some doubles, open issue or question here in github, thanks!
+==============================================================================
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.