History log of /frameworks/base/core/java/android/speech/tts/TtsEngines.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac 28-Feb-2015 John Spurlock <jspurlock@google.com> Remove unused imports in frameworks/base.

Change-Id: I031443de83f93eb57a98863001826671b18f3b17
/frameworks/base/core/java/android/speech/tts/TtsEngines.java
ad6df74ada7c478257425b746588f22eeec199a6 01-Jul-2014 Przemyslaw Szczepaniak <pszczepaniak@google.com> Add support for voices in TTS API.

Voices allow to expose multiple backends/voice packs for a single
Locale. This is an attempt to port this feature from V2 API.

Bug: 15834470
Change-Id: I0117de238cfcf028bcec5344b8d65c960b96b98c
/frameworks/base/core/java/android/speech/tts/TtsEngines.java
6dfa6e2a9be08a3a0f152a7b772efc8ce2469bce 13-Jun-2014 Przemyslaw Szczepaniak <pszczepaniak@google.com> Fix typo and broken sdk build.

Change-Id: Icd1641955d1ca88396219db05312a4a9fd77ea80
/frameworks/base/core/java/android/speech/tts/TtsEngines.java
1b5637ee32c5d4e5d857fa86a1b1c1db23d027b7 30-May-2014 Przemyslaw Szczepaniak <pszczepaniak@google.com> Expose "default tts locale" to the TTS V2 API.

This change allows TTS V2 API client applications to honor the
"default TTS locale" set by the user in the TTS settings.

Note that the TTS V1 API uses 3 character country/language codes
for locale encoding. It's the only system component that does
that. TTS V2 uses the standard, valid Locale objects. The default
TTS locale setting was stored as a 3 character locale string with
"-" as the separator.

This change switches the TTS locale setting format to the output of
Locale.toString() call (on a valid Locale object). Methods used for
reading this value can interpret both forms and try to return a valid
Locale object as an output.

Change-Id: Ice2e6c25a43eb9dd6e17d371ee582c2dae3329c9
/frameworks/base/core/java/android/speech/tts/TtsEngines.java
de1b5ae7a7567f03cfeecf1a62ddf429cb840474 12-May-2014 Przemyslaw Szczepaniak <pszczepaniak@google.com> Add (hidden) TTSEngines#isLocaleSetToDefaultForEngine method.

TTSEngines#isLocaleSetToDefaultForEngine allows the Settings application
to distinguish if the TTS engine locale is blank (set to follow the device
locale) or if it's set to the same value as the device locale.

Change-Id: I462584547d69c21cde4ac317c8a3b3bbc1680cae
/frameworks/base/core/java/android/speech/tts/TtsEngines.java
58f16653728417100c61b5cb63298e0e3bb528dc 20-Sep-2013 Przemyslaw Szczepaniak <pszczepaniak@google.com> Catch MissingResourceException caused by bad locale in TTS.

Malformed locale objects will throw MissingResourceException
from getISO3Country() and getISO3Language() methods.

This change guard against the case where device default locale is
malformed and user tries to get TTS default locale (b/10814409)
and case where user tries to pass bad locale as argument to
TextToSpeech.getFeatures method (b/10494193).

Bug:10494193,10814409
Change-Id: Ie54d5d30bb042324da0c0d19b77c3a932c5642f7
/frameworks/base/core/java/android/speech/tts/TtsEngines.java
40d51e70037c8d32f9bbafd54775e526d86caf23 13-May-2013 Przemyslaw Szczepaniak <pszczepaniak@google.com> Make TtsEngines.getDefaultLocale() method public

TtsEngines is hidden class, it's not a public API.
It's required for tracking system language setting by TTS engines
(Change: Ic4bde97ef7406adb64cc03efbe660275360ba3af )

Bug: 8613986
Change-Id: Iafafcdb244e1520893bee65febd5a137e3556317
/frameworks/base/core/java/android/speech/tts/TtsEngines.java
39268ffcb74f4c177e5e7427b66480c77743f928 17-Oct-2011 Narayan Kamath <narayan@google.com> Format default locale the same way as those stored in prefs.

Also explicitly disallow locales with empty countries. This
is required to match them against the set of engine supported
locales.

bug:5309930
Change-Id: Ie9714fdc09d3081081a2393d97c31e3a42bca294
/frameworks/base/core/java/android/speech/tts/TtsEngines.java
e5b8c4dfc70288f661e0da4f082dd51cc1399f86 22-Aug-2011 Narayan Kamath <narayan@google.com> Framework changes to support new TTS settings features.

Locale is now stored per engine, instead of as a global
option.

bug:5149036
Change-Id: I9848172623fe8aea1dd8e6678bca008da6a4cfb1
/frameworks/base/core/java/android/speech/tts/TtsEngines.java
4d03462b374dfc080f0c7c78d458c102a26be5c6 16-Jun-2011 Narayan Kamath <narayan@google.com> New API for TTS settings.

Engines must declare a <meta-data> attribute in their
manifest with name "android.speech.tts". This must reference
an XML resource as per
com.android.internal.R.styleable.TextToSpeechEngine.

Change-Id: I56a6b9f1a360174f98c9f39da901ade83d0f38a7
/frameworks/base/core/java/android/speech/tts/TtsEngines.java
c3edf2a01a2cf2123a3de17ec1da11a3b6c459f0 15-Jun-2011 Narayan Kamath <narayan@google.com> Don't enforce defaults any more in the TextToSpeech API.

This has been discussed in an email thread. This brings the
text to speech API in line with other android APIs.

The user can set default speech rates / languages and
engine preferences, which the API obeys BUT these can be
overriden by individual apps (much like intent.setComponent
and intent.setClassName can be used to launch a specific
handler for a given intent).

Also, all installed engines are enabled by default. The
user is shown the "data privacy" warning every time an
installed engine is set to the default.

Change-Id: I24f5f331b3a7cc7ce1a62962192e3a452bdca9d4
/frameworks/base/core/java/android/speech/tts/TtsEngines.java
0e20fe5bab7dc3aff488d133961acfe0239f5240 14-Jun-2011 Narayan Kamath <narayan@google.com> A few TTS bug fixes

(a) ensure that onInit is called exactly once per call to initTts().
(b) TtsEngines should never return an engine that is not installed.

Change-Id: Ic1ef63a9339e6d1050e3302445ca40d3ae481f61
/frameworks/base/core/java/android/speech/tts/TtsEngines.java
d3ee2fa18464fb7e4d7f6d27610fbf60b6d1ffce 10-Jun-2011 Narayan Kamath <narayan@google.com> Refactor some of TextToSpeech

required to let the Settings code to the same logic
and not have to roll it's own.

Change-Id: I2766b8562c940182a2954555fb1854889c3ac91a
/frameworks/base/core/java/android/speech/tts/TtsEngines.java