Support Android
Opened this issue · 10 comments
Just need to set up Android with the Flutter Rust Bridge here https://cjycode.com/flutter_rust_bridge/library/platform_setup/android.html
@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.
Thanks @hussain-mustafa990 , that link is for setting up a library. For Android basically need to:
- Configure NDK via cargo-ndk
- Rewrite code so it can handle iOS specific code in Rust
So a bit more involved than I first thought, started on this so will finish when I get time
@lyledean1 Any updates on this?
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.
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.
Thanks for your response. After digging around, I found whisper.cpp to be slower than whisper-tflite. Ended up using tflite.
Nice! Did you write a platform bridge for flutter or are you only using it on Android?
Sorry for the late reply. Yes, I just implemented platform messaging and it works like a charm.
Very cool - any chance you'd be willing to share the code?