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 while Speech to Text downloading #244

Open
Shura0 opened this issue Oct 6, 2024 · 13 comments
Open

Error while Speech to Text downloading #244

Shura0 opened this issue Oct 6, 2024 · 13 comments

Comments

@Shura0
Copy link
Contributor

Shura0 commented Oct 6, 2024

Android 7.0 + Dicio2

When I press button "Download Speech to Text" it immediately displays error "Error downloading". I've tried Russian and English languages with the same result.

@paolo-caroni
Copy link

Have you consented all the permissions first to try the download? Could you provide the log?

@Shura0
Copy link
Contributor Author

Shura0 commented Oct 7, 2024

It asked only for mic permissions and I granted it. How can I get the log?

@paolo-caroni
Copy link

Try to go on settings, app, and search dicio. Then see permissions and grant telephone, contacts, notification. Then force close the app and restart it. Android 7 is pretty old, I'm not sure that I remember where are permissions. For log you can use adb logcat with a usb cable and a computer. Or try with app like logfox (root needed).

@Shura0
Copy link
Contributor Author

Shura0 commented Oct 9, 2024

Ok, I gave all the permissions.

Log is:

10-09 20:34:38.626 28661 28685 E VoskInputDevice: Can't download Vosk model
10-09 20:34:38.626 28661 28685 E VoskInputDevice: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
10-09 20:34:38.626 28661 28685 E VoskInputDevice:       at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:364)
10-09 20:34:38.626 28661 28685 E VoskInputDevice:       at okhttp3.internal.connection.RealConnection.connectTls(RealConnection.kt:379)
10-09 20:34:38.626 28661 28685 E VoskInputDevice:       at okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.kt:337)
10-09 20:34:38.626 28661 28685 E VoskInputDevice:       at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:209)
10-09 20:34:38.626 28661 28685 E VoskInputDevice:       at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)

and more similar lines.

@Tkrtt
Copy link

Tkrtt commented Oct 12, 2024

Android 7.0 and below cross-signed certificate has expired.
https://letsencrypt.org/2023/07/10/cross-sign-expiration/

@Shura0
Copy link
Contributor Author

Shura0 commented Oct 13, 2024

Yes, but firefox works. Also Organic maps for example works well, it can download new maps

@paolo-caroni
Copy link

So dicio need to add it's own trust store, or rise minsdk to make explicit that it support only android 8 and above. The second option is simple, since need only change a number in the code.

@Shura0 In any case I will advise you to upgrade android on your phone, if possible.

@Shura0
Copy link
Contributor Author

Shura0 commented Oct 13, 2024

Unfortunately upgrade is impossible

@Stypox
Copy link
Owner

Stypox commented Oct 13, 2024

@Shura0 can you download the wake word model? The wake word model comes from GitHub, and GitHub's certificates might still be accepted by Android 7, while the Vosk model is from Vosk's website.

@Shura0
Copy link
Contributor Author

Shura0 commented Oct 14, 2024

Yes, it downloaded wake word model well

@Shura0
Copy link
Contributor Author

Shura0 commented Oct 14, 2024

Ok, I can download it with browser. What file and where should I download it to?

@Stypox
Copy link
Owner

Stypox commented Nov 9, 2024

If you have access to app data, choose a model from here according to your language, download it, move it to /data/data/org.stypox.dicio/files/, and rename it to vosk-model.zip. Also create a file, under the same folder, named vosk-model-url (without any extension) which should contain the full download url you used.

@Shura0
Copy link
Contributor Author

Shura0 commented Nov 23, 2024

Unfortunately it did not help

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

4 participants