/whisper_dart_my_first_test_v2

Flutter Whisper Dart Test v2 - it is running normally but the integration with the library is very slow.. it takes a long time to do the transcription

Primary LanguageC++

whisper_dart_my_first_test_v2

I created this app to testing package whisper dart into Flutter. I tested only in Android!

What did i do?

  1. imported package whisper_dart in pubspec

  2. i copied file libwhisper.so into folder android/app/src/main/jniLibs

  3. i added code below in file android/app/build.gradle

    sourceSets { main.java.srcDirs += 'src/main/kotlin' main { jniLibs.srcDirs = ['src/main/jniLibs'] } }

  4. Only run flutter app

  5. 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)

  6. select on wav file, to transcribe for example https://github.com/ggerganov/whisper.cpp/blob/master/samples/jfk.wav

  7. 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!

+==============================================================================

image

image

Getting Started

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.