
    B4J v7.8
    Dismiss Notice

Android Question Open Google TTS options to download voice data

Discussion in 'Android Questions' started by rraswisak, Jul 12, 2019.

  1. rraswisak

    rraswisak Member Licensed User

    Hi all,

    I'm trying text to speech example from Erel's tutorial here, the voice came out for local and English language, but when select other language no voice heard, i notice that voice engine for selected voice did not available or i can say its not installed yet which mean we must add/install manually.

    So the question is, how we/app can directly open Google TTS options setting through code without manually opening google setting ?

    Thank you
  2. emexes

    emexes Well-Known Member Licensed User

    Don't know; good luck with that. Wild guess would be: use Intent?

    Presumably your app user would only be using the local language anyway, which would already be installed. Perhaps you are solving a problem that only a small percentage of your users will have.

    Then again, I have a vague recollection of enjoying a variety of accents when I used TTS six months ago, and I doubt that I installed those language packs or anything, so... I'll have a look at what I did there. But everything was in English, just spoken with the accent of a different language. Or maybe it was of a different country, which is not quite the same thing.
  3. jimmyF

    jimmyF Active Member Licensed User

    This works for me:
    Dim i As Intent
    rraswisak, emexes and DonManfred like this.
  4. emexes

    emexes Well-Known Member Licensed User

    I just tried using a language that is not installed, and it used the default language instead. So I must have installed the data in my sleep ;-)

    If JimmyF's Intent method works, that would be the way to go. With a bit of luck, most of your users will already have the language installed that they need, but it's good of you to prepare things for if they don't.

  5. rraswisak

    rraswisak Member Licensed User

    Thank you @jimmyF, i can confirm that the code works like a charm :)
    jimmyF likes this.
    Dismiss Notice