maxkrieger / voiceliner

Braindump better.
https://a9.io/voiceliner
GNU Affero General Public License v3.0
627 stars 42 forks source link

Voice Transcription Crash #100

Open opie4624 opened 1 year ago

opie4624 commented 1 year ago

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

opie4624 commented 1 year ago

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.

maxkrieger commented 1 year ago

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