voiceliner icon indicating copy to clipboard operation
voiceliner copied to clipboard

Voice Transcription Crash

Open opie4624 opened this issue 2 years ago • 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

opie4624 avatar Mar 06 '23 18:03 opie4624

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.

opie4624 avatar Mar 06 '23 18:03 opie4624

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

maxkrieger avatar Mar 07 '23 06:03 maxkrieger