Text to Speech on Android, making sure com.google.android.tts is on device
-
Hello there
I am working on an Android app using Text To Speech with QT 5.8. Everything works charmingly well. Now, I want to make sure, thatcom.google.android.tts
is present or forced to download on startup. Making sure, the TTS experience is actually happening when it should andcom.google.android.tts
isn't downloaded in the background after the first TTS call. Which would be too late and compromise trust in the system. Also, I am not sure ifcom.google.android.tts
is automatically downloaded on all devices or if this is a lottery. Any hints are highly appreciated. Thx in advance!--edit--
-> It seems that not onlycom.google.android.tts
is needed but also the voices. In my case, this would be English and Hindi. I figured that on some devices, the voices get downloaded according to the locale used ("en_IN" and "hi_IN" in my case). But once again, download of the voices will take some time until it will work.-> Would it be a legit workaround to download the current tts.apk extract the tts library and the voices needed and include them in my app's .apk?
-
Oh dear, you're absolutely right. I was completely overdoing it.
In that case, I must only check for the language files to be present.