lyledean1 / flutter_whisper.cpp

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

Doesn't transcribe when build for App Store / TestFlight #17

Closed kaveshan1 closed 5 months ago

kaveshan1 commented 5 months ago

Firstly, thanks for building this epic library! It has worked super well in debug / release build modes, on an iPhone 15 Pro. However when I run the app from App Store / TestFlight, the transcribe feature doesn't work. It seems to record audio fine but doesn't deploy the model.

Anyone else with similar issues / have a fix for this?

kaveshan1 commented 5 months ago

This seems to be the issue: Exception: Subclasses of FlutterRustBridgeBase should be singletons - there should not be two instances (runtimeType=RsWhisperGptPlatform)

lyledean1 commented 5 months ago

Seems like a similar issue here https://github.com/fzyzcjy/flutter_rust_bridge/issues/1412 as we use the Flutter Rust Bridge in this repo

Seems like you need to strip the iOS symbols https://docs.flutter.dev/platform-integration/ios/c-interop#stripping-ios-symbols

kaveshan1 commented 5 months ago

Thank you so much for responding so quickly! It worked