Commit Graph

36 Commits

Author SHA1 Message Date
Bjorn Bringert
df92f2e1e2 Fix TTS engine checkbox click handler
Before, the dialog asking whether to really enable
the engine wasn't shown. Also, the Default engine
list was not refreshed until you left the TTS settings
and came back.

Change-Id: I8cbded0fe9eedbfb05c294d831c91a857349b224
2011-04-19 14:37:49 +01:00
Bjorn Bringert
c776297594 Use new TTS engine API in TTS settings
Requires TTS engine API added in
change I7614ff788e11f897e87052f684f1b4938d539fb7

Bug: 4148725
Change-Id: I5f3fa3bbcbf4e62af23bb701bcb6e8e5d8511341
2011-04-15 10:04:32 +01:00
Jean-Michel Trivi
8863ce9f4d Fix bug 3421125 Use default TTS rate for demo in Settings
When initializing the TTS engine, the default speech rate is
 correctly read, but the TTS demonstration in the Settings
 screen was overriding that value by setting the rate to
 its fixed default value after the engine was initialized.
The fix consists in applying the default value after it has
 been read from the settings (as is done for the language
 for instance).

Change-Id: Ie13dfa3a2a7e59e5e120e74dc41e60afbedea821
2011-03-02 15:47:52 -08:00
Amith Yamasani
02cf71a591 Use PreferenceActivity and FragmentBreadCrumbs as they offer the same capabilities now.
Also fix: 2997438 and a similar bug in Tether Settings
Show + menu item for User Dictionary
2010-09-21 15:48:52 -07:00
Daisuke Miyakawa
49a305ec54 Fragmentize VoiceOutputSettings.
Change-Id: Ifc8f9a8169cf43f53dc122342d95eac6058e6c88
2010-09-16 10:37:28 -07:00
Jean-Baptiste Queru
6e61b2177b fix unintentional drift
Change-Id: Ie13a72e323e9a1d2c9ec3c034c33792be6634fec
2010-04-14 10:40:48 -07:00
Charles Chen
681d0b8a9e Fixing bug 2577511 - incorrectly trying to access a setting.
Change-Id: I50f3b2f4878bea1392aa36d47015cd312a59e23a
2010-04-12 13:15:46 -07:00
Charles Chen
8c8185b260 Fixing bugs 2577511 and 2581920.
Making sure that the language, country, and variant defaults are always
set to something to ensure that there won't be an NPE.
Dismissing the ListPreference dialogs before a rotation to avoid list
data corruption caused by the list being displayed while its data is
being re-initialized.

Change-Id: Iecdb3b4d415542dc8a4db162c930e6a6570a55f2
2010-04-08 16:51:35 -07:00
Charles Chen
510bc4a2c3 Fix for 2579445 - Using the correct strings for accessing Intent extras now.
Change-Id: I8a0b8f3add637ffffed4119b976c800ab3251b72
2010-04-07 17:41:07 -07:00
Charles Chen
cf31e652d6 Fix for bug #2577984 - Settings app was trying to access the TTS
before the TTS was ready.

Change-Id: Ic8127f12a2608982fb35e126c7522cf6747b93ac
2010-04-07 14:26:31 -07:00
Charles Chen
473111bcfc Fixing bug #2575499 - TextToSpeech Settings did not verify that the
current default language was still supported when the default engine
changes.

Change-Id: I2f4b986311161ceaa9d4b9cf3a495f536d9425cd
2010-04-06 16:03:33 -07:00
Charles Chen
be6e8276e3 Fixing a problem with the TextToSpeech settings not reflecting
the current engine that the user has selected when displaying
the list of engines that are available.

Change-Id: I77d35ff1c691fd3e5c967fcf367647d415d2468e
2010-03-22 16:06:05 -07:00
Charles Chen
f47cce0789 Saving the list of enabled plugins in secure settings so that the
TextToSpeech service can later check which plugins are enabled.

Change-Id: I5fce45540c1b7faf466c11b3b76259fde2e7c2ed
2010-03-17 17:35:33 -07:00
Charles Chen
0a0eb5f7e8 Adding plugin specific settings to TTS settings + changing the UI
to be more like the IME settings.

Change-Id: I0d26042262b4d9e636d3f456e867c725fa56ae55
2010-03-16 20:32:18 -07:00
Charles Chen
ec05e716ad Added a default fallback message for cases where the TTS plugin does
not provide a sample string.
2010-02-18 15:18:21 -08:00
Charles Chen
d5f013a4fa Adding checks for null to TextToSpeechSettings to handle cases
where the plugin fails to return properly from CheckVoiceData
and GetSampleString.
2010-02-18 10:32:48 -08:00
Jean-Michel Trivi
7330a88b79 Fix bug 2446811 Ensure the default locale is never constructed
with a null string.
2010-02-17 12:50:44 -08:00
Charles Chen
cf3998bb4d Fixing a problem with the TextToSpeech settings failing to refresh
the list of languages after the user has switched synthesis
engines.
2010-02-12 10:29:26 -08:00
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