Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Text to Speech on Android, making sure com.google.android.tts is on device
QtWS25 Last Chance

Text to Speech on Android, making sure com.google.android.tts is on device

Scheduled Pinned Locked Moved Solved Mobile and Embedded
androidtext to speechqt 5.8downloadcom.google.andr
4 Posts 3 Posters 2.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • _ Offline
    _ Offline
    _.-rFLo_.-
    wrote on 7 Jul 2017, 10:24 last edited by _.-rFLo_.- 7 Jul 2017, 12:36
    #1

    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, that com.google.android.tts is present or forced to download on startup. Making sure, the TTS experience is actually happening when it should and com.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 if com.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 only com.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?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 8 Jul 2017, 22:06 last edited by
      #2

      Hi,

      Do you mean that API ? If so it looks like its integrated since API level 4.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • _ Offline
        _ Offline
        _.-rFLo_.-
        wrote on 10 Jul 2017, 10:40 last edited by
        #3

        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.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          cooperrai
          Banned
          wrote on 9 Dec 2022, 11:33 last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved