lyledean1 / flutter_whisper.cpp

Flutter App That Can Transcribe Audio Offline/On Device with Whisper C++ Bindings via Rust
MIT License
100 stars 10 forks source link

Support Android #10

Open jonahzheng opened 10 months ago

jonahzheng commented 10 months ago

can build, but can not run

L%Y37MH45CPLPT8N@VDSJB

lyledean1 commented 10 months ago

Just need to set up Android with the Flutter Rust Bridge here https://cjycode.com/flutter_rust_bridge/library/platform_setup/android.html

hussain-mustafa990 commented 9 months ago

@lyledean1 I have limited experience with rust, and a little with C. If you can help me figure out the cmake part from https://cjycode.com/flutter_rust_bridge/library/platform_setup/android.html. I just might be able to do get this working on android.

lyledean1 commented 9 months ago

Thanks @hussain-mustafa990 , that link is for setting up a library. For Android basically need to:

So a bit more involved than I first thought, started on this so will finish when I get time

hussain-mustafa990 commented 6 months ago

@lyledean1 Any updates on this?

zhubarb commented 5 months ago

Any updates on the android version? re: "Rewrite code so it can handle iOS specific code in Rust", I do not know Rust unfortunately, but happy to help push this forward if possible.

kvenn commented 4 months ago

Here is a java library that might make it easier: https://github.com/GiviMAD/whisper-jni

Also if you just need language -> language conversion, ChatGPT should be able to help out a lot.

zhubarb commented 4 months ago

Thanks for your response. After digging around, I found whisper.cpp to be slower than whisper-tflite. Ended up using tflite.

kvenn commented 4 months ago

Nice! Did you write a platform bridge for flutter or are you only using it on Android?

zhubarb commented 3 months ago

Sorry for the late reply. Yes, I just implemented platform messaging and it works like a charm.

kvenn commented 3 months ago

Very cool - any chance you'd be willing to share the code?