damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.42k stars 804 forks source link

ttsSpeak does not allow to specify (or query) a language #202

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:28

HTC Desire

2.2 Froyo

I can find no way to make the phone speak in a given language (the language in 
which a text is written) or even to know which language is the computer set, so 
that I can provide localized sentences to be spoken in the language that is set 
up...

as an example, the say_time.py demo in my system reads "September treinta" 
instead of either "treinta de septiembre" or "September thirty", depending if 
the ttsSpeak would take English or the template for the date was adapted to the 
preferred language...

While solving the time problem is more complex, one starting point is to know 
(and be able to specify) which language is going to be used by ttsSpeak.

The same applies to the say_weather.py example, where the hl= parameter is 
fixed to English and cannot be queried from the phone preferences...

Original issue reported on code.google.com by santiago...@gmail.com on 30 Sep 2010 at 3:01

Copied from original issue: damonkohler/android-scripting#450

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:28

Original comment by damonkoh...@gmail.com on 6 Nov 2010 at 9:44

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:28

Hello,

I think this is not an enhancement proposal, this is a bug report.

TTS provides an option: "Always use my settings - Default settings below 
override application settings", but it has no effect on SL4A.

It would be nice if this bug was corrected, even without any change in the API. 
It would be OK if there were no way to configure languages, but if the default 
language set in TTS settings would be used.

Please consider that this is a serious bug for non-native english speaker. I am 
currently building a robot and I wish it could speak french, but this is not 
possible so far with SL4A.

Thanks,

Original comment by julien.c...@gmail.com on 26 Sep 2011 at 8:15

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:28

Hello again,

I was actually wrong in my previous comment. I was in a confusing situation 
where I had eye-free installed on a 1.6 which already natively support TTS.

Still, there is one remaining major problem: there is no way to specify 
language (only default language is used) and no way to know which language will 
actually be used. 

Regards,

Original comment by julien.c...@gmail.com on 27 Sep 2011 at 9:45