So I believe I figured out a way around this, which IMO is nicer anyway.

Rather than check the TTS data before I create the TTS object, I just 
create it and then call:

myTTS.isLanguageAvailable(Locale.getDefault()) // for the default locale, 
can change to whatever

to see if there's TTS data available for that object. Worked fine in 
testing, waiting for Play Store to push update to test production. Also, I 
don't have the code in front of me, so I may have mistyped the syntax, but 
it's something like that. Googling it will find a more thorough explanation.

On Thursday, July 26, 2012 10:13:50 PM UTC-5, Michael Kendle wrote:
>
> I'm having the same problem with my app. Only an issue with Jelly Bean, 
> worked fine before.
>
> On Monday, July 23, 2012 9:37:53 AM UTC-5, Pent wrote:
>>
>> On my Nexus S European GSM 4.1, if not all possible languages are 
>> installed for the 'Google Text-to-speech Engine' then checking TTS 
>> data with this action... 
>>
>> TestToSpeech.Engine.ACTION_CHECK_TTS_DATA 
>>
>> ...results in immediate return in onActivityResult of result code 
>> CHECK_VOICE_DATA_MISSING_DATA with no voice data extras for the 
>> languages that *are* installed. 
>>
>> In other words, it's apparently impossible to get a list of available 
>> voices for the engine until *all* of the possible voices are 
>> installed. 
>>
>> Users aren't going to be impressed at having to download e.g. Italian, 
>> Spanish, French etc before being able to say something in e.g. 
>> English. 
>>
>> Logic lapse there somewhere ? 
>>
>> In 4.0.4 and prior the installed voices were returned. Other voices 
>> could be downloaded via the TTS config in settings. 
>>
>> Did I miss some extra API part ? 
>>
>> Pent 
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to