maxkrieger/voiceliner

Voice Transcription Crash

Opened this issue · 2 comments

VoiceLiner crashes once a voice message is created and transcription begins. Then crashes on each successive launch. Error from logcat:

03-06 10:09:02.252 23809 23809 E VoskAPI : Model():model.cc:122) Folder '/storage/emulated/0/Android/data/chat.saga.voice_outliner/cache/vosk_models/vosk-model-small-en-us-0.15' does not contain model files. Make sure you specified the model path properly in Model constructor. If you are not sure about relative path, use absolute path specification.

It seems like this might be related to Android "cleaning up" infrequently used apps. Perhaps VoiceLiner should detect when it's model has gone missing and offer to redownload?

Device: Samsung Galaxy Z Fold3 5G
Android: v13 One UI 5.1

You can reproduce this by setting up VoiceLiner and downloading a transcription model. Clearing the app's cache and force stop (or reboot the phone) then trying to transcribe again.

Good catch! PR is welcome, it'll be a bit before I can get to this.