Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error loading recogniser #6

Open
backupandforkacc opened this issue Dec 15, 2021 · 11 comments
Open

error loading recogniser #6

backupandforkacc opened this issue Dec 15, 2021 · 11 comments

Comments

@backupandforkacc
Copy link

backupandforkacc commented Dec 15, 2021

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
Copy link
Author

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

@backupandforkacc
Copy link
Author

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
Copy link
Author

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.

@ccoreilly
Copy link
Owner

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.

@stefangrotz
Copy link

stefangrotz commented May 11, 2022

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?

@ccoreilly
Copy link
Owner

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

@stefangrotz
Copy link

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.

@ccoreilly
Copy link
Owner

ccoreilly commented May 11, 2022

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?

@stefangrotz
Copy link

stefangrotz commented May 11, 2022

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
Copy link

stefangrotz commented May 11, 2022

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,

@ccoreilly
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants