Skip to first unread message

glas...@gmail.com

unread,
Jun 29, 2014, 7:58:01 AM6/29/14
to mitappinv...@googlegroups.com
Hi, I have made an experimental app with text to speech buttons that has 2 languages on it, English and Spanish but Spanish only seems to work if there is an internet connection when Google Text to Speech is selected. I have 2 devices which are both Samsung and if I select the Samsung text to speech, it will speak in both languages offline but if I select Google text to speech in the settings for both devices, only English will work when they are offline.

Is there a way to make Spanish talk when offline with Google text to speech?

SteveJG

unread,
Jun 29, 2014, 8:18:06 AM6/29/14
to

you can have this feature offline by doing as follows:

  1. Go to “Language and Input” in the Setting
  2. Tap on "Download offline speech recognition" under the "Voice Search" 
  3. Choose the language pack you want your Android device to recognize
  4. Download the pack and enjoy the offline voice typing.


So, to get Spanish in in offline version, you probably have to change the device language in your Android settings. You might be able to do this using Activity.Starter to bring up the settings menu...however, how to get the device to speak in a language other than the language set for the device on demand, you need to consult Googles's API. This may or may not be possible using AI2. Activity.Starter possibly can bring up the settings ... check here: http://developer.android.com/reference/android/provider/Settings.html#ACTION_LOCATION_SOURCE_SETTINGS



Experiment with a few things. If you find a way to force a language on the TTS other than the device's language, celebrate and share how you did it with us.

Regards,
Steve

glas...@gmail.com

unread,
Jun 30, 2014, 3:34:23 AM6/30/14
to mitappinv...@googlegroups.com
Hi Steve,

Thanks for that info.

I had a look at my settings and it already had the offline speech recognition installed for Spanish so I don't know why it doesn't work?

I tried testing my app on another tablet which has an older Android version and the offline Google text to speech works in Spanish - even without Spanish installed as offline speech in the settings. Strange but it seems as if an older version of Android doesn't need this to be installed for it to work offline.

If I use the Samsung TTS, the offline Spanish works on all devices, so this is a problem with Google TTS only I think.


Reply all
Reply to author
Forward
0 new messages