LocalSTT icon indicating copy to clipboard operation
LocalSTT copied to clipboard

error loading recogniser

Open backupandforkacc opened this issue 2 years ago • 11 comments

I can install the release localstt (2020-12-03). But when starting it, I get the error stated above. The log I posted here.
Here is the filtered content (only Local TTS) from a new test.

My device: Pixel 2 with LineageOS for microG. Android 11 (18.1-202111208-microG-walleye).

Is there any solution there? Or can someone give me a hint on how to build my own apk?

backupandforkacc avatar Dec 15 '21 09:12 backupandforkacc

I built my own apk, but I am still getting the error. I am grateful for any comments.

backupandforkacc avatar Dec 15 '21 14:12 backupandforkacc

It probably has to to with some behavioural changes, but I think this should not apply to the services, but only apps using the service: https://developer.android.com/about/versions/11/behavior-changes-11#speech-recognition

backupandforkacc avatar Dec 15 '21 16:12 backupandforkacc

I also tested it with android 8 and get the same error: https://bardhome.de/index.php/s/qK8nAsgr4jfwcBT

I do not have Android 9 available unfortunately to test it.

backupandforkacc avatar Dec 16 '21 09:12 backupandforkacc

Hi @backupandforkacc !

I don't have a device with Android 11 but the issue is most probably related to this issue in K6nele. You can see in your logs:

2021-12-16 11:26:31.641 2019-2019/cat.oreilly.localstt E/RecognitionService: call for recognition service without RECORD_AUDIO permissions

I don't have much time to check how to fix it other than going the extreme way k6nele followed of extracting the recognitionservice from the app into a different app.

As for you Android 9 logs, I don't see any mention of LocalSTT there.

ccoreilly avatar Dec 17 '21 16:12 ccoreilly

Same problem here on Android 9 with a self build app. Solving this issue would really make this app a lot more useful and I would like to help. What is the best way to analyze this problem?

stefangrotz avatar May 11 '22 08:05 stefangrotz

PR #7 should fix this, can you test it? It'd merge it if you can confirm!

ccoreilly avatar May 11 '22 08:05 ccoreilly

The app I was using was a fork of the american repo from the PR (https://github.com/nordfalk/EsperantoParolRekono). So to me it looks like it doesn't work. But the fix is for Android 11 and I am using Android 9.

stefangrotz avatar May 11 '22 08:05 stefangrotz

I am also on Android 9 and just downloaded the esperanto APK, which ran without issues. A full log ( adb logcat) from right before starting the application would help. What Android flavour are you using? Do you use GSF or microg or none?

ccoreilly avatar May 11 '22 12:05 ccoreilly

I am using GSF, a simple not jailbroken sony stock android with MS SwiftKey. It first worked for me, and after I tried again a few minutes later it suddenly stopped working. I will create a log in a few hours, but I don't have access to Android Studio right now.

EDIT: just tried again. It worked one time and on the second try I had the error again. Maybe some problem when the app is restarted?

stefangrotz avatar May 11 '22 13:05 stefangrotz

Here are my logs when I accessed it from SwiftKey and it failed: logs.txt

EDIT: I tried a few things and it turned out that it works perfectly fine using Kõnele on my system, so I can go with that for now,

stefangrotz avatar May 11 '22 15:05 stefangrotz

I'll check the logs but I guess Swiftkey is sending some other intent

ccoreilly avatar May 12 '22 07:05 ccoreilly