Commit Graph

18 Commits

Author SHA1 Message Date
Charles Chen
c8298717bc Settings for TextToSpeech now uses the results returned by the
engine's CheckVoiceData activity to determine which languages are
available and whether or not to make "Install Data" clickable.
2010-02-10 14:54:26 -08:00
Charles Chen
8a37e6190b Fixing bug 2418114. Added a check to make sure the TTS sample string for
a language-country combination is available before trying to use it.
2010-02-04 15:52:30 -08:00
Charles Chen
4df6c79f41 Changing TextToSpeechSettings to query for the sample text
strings provided by plugins rather than using hardcoded sample
text.
2010-01-25 13:08:08 -08:00
Charles Chen
5dbc74ac7e Exposing the ability to select a default TTS engine to the
user by adding it into Settings.
2009-12-14 17:00:42 -08:00
Jean-Michel Trivi
58ea43acf9 Fix bug 2078454 where clicking on Settings in the Home menu would
take the user to Market after clicking on "Install Voice Data" in
the TTS Settings page.
Launching the Activity for the installation of the TTS data should
be a distinct task, dissociated from the one associated with the
Settings app. Also the intent ACTION_INSTALL_TTS_DATA doesn't return
a result, so the activity should be started with startActivity()
rather than startActivityForResult().
2009-09-09 15:20:56 -07:00
Jean-Michel Trivi
e8e23db707 Fix bug 2088099 where the TTS example doesn't play in the Settings app
when the UI is in Japanese.
Rewrite of the initialization of the default language in the TTS Settings.
The previous implementation had the following issues:
- the "Listen to an example" didn't use the default settings
- the string used for the example didn't match the selected language
 (this was in order to not imply that TTS is doing translation, but
  that proved confusing to users).
The language initialization is now implemented in initDefaultLang()
and ensures that the default locale is one supported in the array
of available locales.
The speech rate is also initialized from the settings or the
default rate (if no value was stored in the settings).
2009-09-02 15:48:32 -07:00
Jean-Michel Trivi
ab6552c3f0 Make sure the TTS example in the TTS Settings loads a supported language.
This fixes the issue where the example wouldn't play when the UI is in
Japanese in bug 2088099.
2009-09-01 13:46:44 -07:00
Jean-Michel Trivi
6dde8965a0 Fix bug 2045197.
The TTS settings activity uses the default TTS stream type. Associate
the volume control of this stream type with the volume control buttons.
2009-08-11 09:06:58 -07:00
Jean-Michel Trivi
387dc0ca9c Fix bug 2017664.
Use the new constant names in TextToSpeech.
2009-07-29 11:24:25 -07:00
Jean-Michel Trivi
628431de91 Fix bug 1956707 in which setting the default language has no effect.
Use the current Locale upon initialization of the TTS engine.
Retrieve the default engine value from the TextToSpeech.Engine class
instead of a hard-coded value in TextToSpeechSettings.
2009-07-17 16:52:54 -07:00
Jean-Michel Trivi
00d4fbfc42 In the TTS settings: rely on the default locale rather than default
values stored in TextToSpeech.Engine to initialize the default TTS
country and variant.
2009-07-07 17:08:32 -07:00
Jean-Michel Trivi
44fbbea071 Fix bug 1946195 by making use of the current Locale to set a default value
in the language pref list (bug was no selection in the default language list).
Fix half of bug 1956707 where speech rate value as read from the settings
was translated to a ratio, which applied an improper speech rate on the
TTS engine (bug was setting a default rate makes the TTS demo unintelligible).
Moved logic to set the default value in the language pref list in a separate
private method to improve readability.
Changed default rate values so that normal is 1x and the fastest is 2x.
2009-07-06 14:16:17 -07:00
Jean-Michel Trivi
88ec7ebfe9 Fix bug 1943785 where the default country string could be accessed while
still being null. This was due to Settings.Secure.getString() returning
null when a property isn't found, instead of a string with the value "null".
2009-06-30 15:14:30 -07:00
Jean-Michel Trivi
2acc02e942 Remove pitch selection from TTS settings.
Use the settings name for the locale property rather than the UI key.
Add prefs entry to install the voice data.
2009-06-25 10:03:43 -07:00
Jean-Michel Trivi
1e6a45a2d0 Updated TTS settings to support language, country and variant settings.
Disable/enable entries based on whether language files are installed on the phone.
Added entry to install the language files on the phone.
2009-06-23 13:17:13 -07:00
Jean-Michel Trivi
74e565d85d Update the Text-To-Speech settings screen to allow listening to a TTS
example after checking that the data required by the TTS engine is
properly installed.
Removed use of local constants for the the default TTS values, use
the values defined in TextToSpeech.Engine instead.
2009-06-18 18:54:02 -07:00
Jean-Michel Trivi
8036862226 Adding support for selecting the default language for Text-To-Speech in Settings. 2009-06-10 17:12:41 -07:00
Jean-Michel Trivi
ed29a65835 Adding Text-To-Speech default settings in the Settings application. 2009-06-09 10:48:22 -07:00