SSL error while Speech to Text downloading
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.
Have you consented all the permissions first to try the download? Could you provide the log?
It asked only for mic permissions and I granted it. How can I get the log?
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).
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.
Android 7.0 and below cross-signed certificate has expired. https://letsencrypt.org/2023/07/10/cross-sign-expiration/
Yes, but firefox works. Also Organic maps for example works well, it can download new maps
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.
Unfortunately upgrade is impossible
@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.
Yes, it downloaded wake word model well
Ok, I can download it with browser. What file and where should I download it to?
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.
Unfortunately it did not help