b00941804890858ddc3b680c7a8e171c7dfdfb5f |
|
31-Aug-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Clean TTS logs: use a common TAG in the TTS service, don't show an error when loading the native synth lib.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
09f8db7ad3963f5fa15f2b99880b2f70e89c30ae |
|
31-Aug-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Add a synchronous stop method to TTS synth engine so that upon its destruction, if it was synthesing to a file, the latter can be deleted without still being written to. Clear the hashmap of SpeechItem to be stopped (mKillList) when the speech queue is empty.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
ab6ed2c2b9cebd97cb501da58d386f59e4a99103 |
|
28-Aug-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Launch synthesis thread at max priority to prevent hicups in playback. Return and log an error when an operation cannot be completed because the speech queue is locked longer than the timeout period. Log cleanup.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
a3046b6f7f81cc16afeba9aee880c2ed643ccfbf |
|
27-Aug-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Implement clean killing of the TTS service. If files were being synthesized to while the service was being killed, it would have left partially written files (with no header). This CL checks if the service is rendering to a file at the time the service is destroyed: if it is, it will stop the rendering and deletes the file.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
69e67a3e2e863fa8828151ef3a488bfcaa504f7a |
|
11-Aug-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Fix bug 2043140. A race condition is encountered when an application invokes shutdown() on its TextToSpeech object while is has speak() requests still running. Since the TTS service destructor releases the synthesizer resources and sets the corresponding synth reference to null, an NPE was observed. The fix consists in catching NPEs whenever the sNativeSynth object is accessed, and return the matching error for the call. This change is a "low risk" version of the fix for bug 2025765i (same issue) which was reverted because it was higher risk than this CL: it affected the logic of each call to sNativeSynth. This CL only sets an error code when an NPE is fired because sNativeSynth is null.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
fbe89ec6404978da7899b944d989dd9f50a468b5 |
|
04-Aug-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Revert "Fix bug 2025765." This reverts commit 9ebb59b8aa75cab1e5bb53983893b579abb63edd.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
9ebb59b8aa75cab1e5bb53983893b579abb63edd |
|
03-Aug-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Fix bug 2025765. Talkback produced a null pointer exception when being enabled and disabled repeatedly due to a race condition between the onDestroy() of the service, and the use of the service itself. The error occurs when one Talkback thread initiates the destruction of the service (call to onDestroy()) when it invokes shutdown() on its TextToSpeech instance (the client of the service). At the same time, Talkback tries to say that "Accessibility" is unchecked from another thread. During onDestroy(), the reference to the TTS engine (sNativeSynth) is reset to null, which is used in the service in speakInternalOnly(), and setLanguage(). The fix consists in the addition of a static variable that signals that the service has entered onDestroy(). Once this flag is set, all method invocations on sNativeSynth will be dismissed. Note that access to the native resources used by sNativeSynth are synchronized at the native layer, therefore preventing sNativeSynth.shutdown() to interfere with a sNativeSynth.speak() call already underway.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
ed06578eddde07abe325fa4c92910bb7246cd49f |
|
28-Jul-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Fix bug 2017664 Removed the TTS_ prefix in the TextToSpeech class to follow the standard naming convention. Moved the TTS-related intents from the Intent class to TextToSpeech and TextToSpeech.Engine. Renamed the TextToSpeech.Engine constants that are used as extras for the ACTION_TTS_CHECK_TTS_DATA intent to prefix them with EXTRA_. Cleaned up the other TextToSpeech.Engine constant to remove superfluous mentions of "TTS" in the name.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
0dbc6a44bb76631911552bc5b356391dac6f38a4 |
|
27-Jul-2009 |
Charles Chen <clchen@google.com> |
Fixing bug #2008185 - problem with the TTS dropping utterances under heavy load was caused by the speech queue being locked. Switched to using a timeout with tryLock so that the TTS service does not give up immediately.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
cee3bd4d68bf40d36fee3f0f5ce03f9edae87b51 |
|
21-Jul-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Reset the speech synth singleton to null when the service is destroyed so it can be recreated when the service is initialized. In the interface with the native synthesizer library, close the lib in the finalizer, delete the global ref to the SynthProxy java object.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
a73d5cd05550310c3e6cedf0759210c255f4a6aa |
|
21-Jul-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Make sure the speech synthesizer proxy is a singleton in the TTS service.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
5e11a6ad00b062d604b30578e0fb412ae4586989 |
|
20-Jul-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Prevent the setLanguage() method in TextToSpeech to change the language for all current TextToSpeech instances by only caching the language value so it is used with each subsequent utterance for this instance. Synchronize calls to the engine around a global mutex since the engine isn't thread-safe, except for the stop() call which is meant to interrupt the synthesis loop.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
b79370aad730949543bccf01b2c3d9ed64f493f5 |
|
18-Jul-2009 |
Charles Chen <clchen@google.com> |
Making sure that there are no calls made to the native TTS layer if the utterance is in the process of being canceled.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
c231fd0fe7814a025aeb05796542048a51d0236b |
|
16-Jul-2009 |
Charles Chen <clchen@google.com> |
Fixing a race condition that causes synthesis to not be aborted even if stop is called.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
6f624239dc6c62ac9f18c4c8c65c2fbf1c78bdbd |
|
15-Jul-2009 |
Charles Chen <clchen@google.com> |
Fixing a bug in how stop works - keep stop from always stopping the currently speaking item if that item does not belong to the app that is trying to do the stop. Also adds back the functionality of globally stopping speech that was lost when utterance IDs were added (needed by screen reader).
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
edb4fc3076622393ac25fafda24e4bbe78ec44e4 |
|
14-Jul-2009 |
Charles Chen <clchen@google.com> |
Cleaning up TtsService
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
3ab2076d65b86a69f6c5de220082c2fbace575e2 |
|
14-Jul-2009 |
Charles Chen <clchen@google.com> |
Implementing utterance ID callbacks for silence and pre-recorded files (both generating and playing).
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
78c9d0d2c5eb4d5687ae7cbe41155159329ad68f |
|
14-Jul-2009 |
Charles Chen <clchen@google.com> |
Adding Utterance ID to the TtsService.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
9440bce8553a82e420e06ded3fcccc6971d1ff79 |
|
13-Jul-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Propagate optional audio stream type to the creation of the audio resources to enable the playback of TTS content on various stream types.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
630a8de44fa0ca855c4a87d939432f831e8ed531 |
|
11-Jul-2009 |
Charles Chen <clchen@google.com> |
Fixing TTS breakage.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
d48ca22b9fcea38b112aedb4126f3d030594af47 |
|
10-Jul-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Use the TTS queue constants in the TTS service as defined in the TextToSpeech class.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
a9c5e4bf2639f8f09be8bace4230613b7b689f0e |
|
10-Jul-2009 |
Charles Chen <clchen@google.com> |
Adding tagging to utterances to track which app said what.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
be84e4134d03e8e9823c06ec89da7428a2b744ea |
|
09-Jul-2009 |
Charles Chen <clchen@google.com> |
Unbreaking the build.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
0a3d8744feb8ef5714b6c341ebcaa7ce326de908 |
|
09-Jul-2009 |
Charles Chen <clchen@google.com> |
Adding a lock to stop so that stop will stop utterances that are just starting up.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
b02ced7e454ae195c53993fe310ee38de6452ded |
|
07-Jul-2009 |
Charles Chen <clchen@google.com> |
Cleaning up logs. Initializing SpeechItem.mText to "" instead of null to prevent a null from accidentally being used when it is a non-text utterance.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
d478cf09dff93015bc332f2707068f08bf603cfd |
|
07-Jul-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Use the current Locale as the default language when TTS settings are not found, rather than a hardcoded value stored in TextToSpeech.Engine.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
52ae06521a8d4c48757b126cff233f037d0a16ba |
|
07-Jul-2009 |
Charles Chen <clchen@google.com> |
Fixes a compatibility issue with users that have the old TTS installed already.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
a3f89295ad4c7bd65a25144d2be1d45ea0acf87f |
|
06-Jul-2009 |
Charles Chen <clchen@google.com> |
Propagating the error codes through the TtsService
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
4bca97ecaf04c50d5ed49920d119f9ffa6c29402 |
|
03-Jul-2009 |
Charles Chen <clchen@google.com> |
Removing IPA - IPA is already handled by the phoneme tag.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
ebb814bbaeacbdc04faa5683f25b12d40609548c |
|
30-Jun-2009 |
Charles Chen <clchen@google.com> |
Fixing synth to file to use the speech queue.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
bbd63cb28595bd6b1fa62d331d9373b5c798c267 |
|
30-Jun-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Fix bug where the default TTS Service country is initialized to the default language.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
ddb0a803fd353fbaf0139cc8804499bc9dce7403 |
|
30-Jun-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Adding in TTS service support for language query and level of support.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
03454f8932b7fd79471ae6f95f2de7b75b0ded8a |
|
29-Jun-2009 |
Charles Chen <clchen@google.com> |
Adding support for params.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
741c25b164d132ddc6ef662ddf854ebedcd0e389 |
|
26-Jun-2009 |
Charles Chen <clchen@google.com> |
Adding skeleton methods for IPA support.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
1aacdcfaa9233995fe78017c2a342258a69123a4 |
|
26-Jun-2009 |
Charles Chen <clchen@google.com> |
Adding splitting to the TTS to guard against extremely long strings.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
28dbae7df43ee683ba1bf468ad9924092bb9c569 |
|
25-Jun-2009 |
Charles Chen <clchen@google.com> |
Using a sendBroadcast to notify interested parties of when the TTS queue has finished processing.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
7af9e196a33ac1d7fe3d5030fa42bbcaf2038020 |
|
24-Jun-2009 |
Charles Chen <clchen@google.com> |
Fixing the synth function so that queue processing continues.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
6a0e293c84de02e819c1b402141bd3f7684ea164 |
|
24-Jun-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Fix bug in TTS service where the language setting was using the default language when the setting wasn't enforced, and vice-versa. Cleaning the log of the native TTS layer to use LOGV for verbose messages, rather than LOGI.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
2ea5349583de4a505501530d04133524bb6d5d38 |
|
23-Jun-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Adding support for pitch changes of the synthesized text in Text-To-Speech.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
d146874d7341bc9602c93719582b4209e7b81f01 |
|
18-Jun-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Grouping under TextToSpeech.Engine the constants to be used by a TTS engine implementation or a settings application for default values, and data integrity check return codes.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
605a66bd56f01713f240ee8bc1435512500498e0 |
|
18-Jun-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
In the TTS service, read the default TTS settings from Settings.Secure.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
679d728f09eeab2f8b882e42f6e081db1ac74996 |
|
17-Jun-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Using Locale to specify language and country for a TTS language to load, rather than a String. Cleanup in doc for TextToSpeech, and addition of queue mode constants.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
b3c5a8785bc643843117752d37769a1edfe9a9e2 |
|
11-Jun-2009 |
Jean-Michel Trivi <jmtrivi@google.com> |
Made the platform TTS service aware of the path for the default TTS library to load.
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|
f85aa5a4d4e6f1ef7e07638568e27d709b8085c6 |
|
10-Jun-2009 |
Charles Chen <clchen@google.com> |
Restructuring the TTS files so that it works as a Service
/frameworks/base/packages/TtsService/src/android/tts/TtsService.java
|