summaryrefslogtreecommitdiffstats
path: root/packages/TtsService
Commit message (Collapse)AuthorAgeFilesLines
* Improved native TTS interface header.David 'Digit' Turner2010-06-112-74/+129
| | | | | | | | | | | | | | | The purpose of this patch is to add a C-based ABI that can be exposed by the NDK for developers wanting to write a TTS Engine. This replaces the C++ ABI that is currently under frameworks/base/include/tts/TtsEngine.h but is *binary* compatible with it. As a consequence, the svox pico plugin under external/svox/pico/tts/, which links against tts/TtsEngine.h can be loaded by the TTS service properly. Another patch would modify the pico tts to use <android/tts.h>, then we will be able to get rid of <tts/TtsEngine.h> in the source tree. Change-Id: I16844cef9b5b006cc32655a29e4f9f193c8c1a91
* For issue #2651381, allow library prelinking.Dan Bornstein2010-05-051-2/+0
| | | | Change-Id: I1cb467a158e21fc02cac6af585ac8d27c2bf42de
* Fix for bug 2564771 - pitch setting between apps canCharles Chen2010-04-011-1/+31
| | | | | | | | | | | interfere with one another. Root cause was not caching all the params that were needed. This change fixes that bug as well as related bugs for remembering the default engine and for making sure that the right engine is loaded when checking for language availability. Change-Id: I2a76da8faec8112036e68d27539db444c53a1509
* Fix for bug 2548048 - it was impossible for applications to discoverCharles Chen2010-03-291-0/+10
| | | | | | if their TTS settings were being overridden by the user or not. Change-Id: I28856a1b79c9455435671d13ed614a1ccb4e95ea
* Cherry-picking this fix into Froyo.Charles Chen2010-03-261-0/+9
| | | | | | | | | This fix is part of addressing bug #2548048 Making it possible to determine which TTS engine is currently set as the default by the user. Change-Id: Ifa422f43a33498b94d96811078c0794d64668357
* Fix bug where the setConfig method in SynthProxy has the wrongJean-Michel Trivi2010-03-181-2/+2
| | | | | | signature. Change-Id: If04b9a1d6de6384d7f53efac4e60f1cd4d659625
* Update TTS plugin interface to receive engine configuration dataJean-Michel Trivi2010-03-182-7/+39
| | | | | | coming from the plugin helper code (handling config and preferences). Change-Id: Ibc1d229463f11f8977552d74d1fd2aa6a6cab88e
* Enabling plugin engines to pass in their engine specific settingsCharles Chen2010-03-171-6/+20
| | | | | | | via a ContentProvider to the TtsService so that the TtsService can invoke their .so file with those settings. Change-Id: Icd0e966971c36ebb4da191a50cda96d6f4525df5
* Support plugin parameter updates for TTS plugin settings.Jean-Michel Trivi2010-03-172-3/+10
| | | | Change-Id: Ia18a15b260a5eccb9ac55a8d526832c015224bca
* Added a check to TtsService to make sure that the engine is enabledCharles Chen2010-03-171-2/+22
| | | | | | | before using it; if the engine is not enabled, TtsService will fall back to using the default system engine. Change-Id: I401f9c19cc1351c0ae6daf2b11069e5036febc51
* Revert TTS output filter tuning after reverting the Pico 1.1.0.2Jean-Michel Trivi2010-03-151-3/+3
| | | | | | energy distribution change in an attempt to fix bug 2449814. Change-Id: I144649f599e066e7ec85c05f6b2a5fdda64ec7b5
* Merge "Fix bug 2481825 When TTS is synthesizing to a file, return an error ↵Jean-Michel Trivi2010-03-091-1/+18
|\ | | | | | | if the file cannot be created."
| * Fix bug 2481825Jean-Michel Trivi2010-03-081-1/+18
| | | | | | | | | | When TTS is synthesizing to a file, return an error if the file cannot be created.
* | Fix typo in log message in TTS SynthProxy.Jean-Michel Trivi2010-03-071-1/+1
| | | | | | | | Change-Id: Ica7dbf6cb3db2e07958fadad476571b91bde2c24
* | Fix bug 2449814Jean-Michel Trivi2010-03-071-4/+4
|/ | | | | | | Reduced the amount of filtering and amplification at the output of the Pico TTS engine v1.1.0.2 Change-Id: I89f577b5e94e171b4ed892faffb863f19428cc1a
* Expand buffer in SynthProxy to hold intKenny Root2010-03-041-2/+2
| | | | | | 32-bit signed integers are 11 bytes and a byte at the end for \0 Change-Id: I6a9cf69ecc64614c610cbade1c3398506d6f62f5
* Fix Proguard flags.Ying Wang2010-03-022-0/+7
|
* Fixing a bug with TTS that caused TTS to ignore the default settingsCharles Chen2010-03-011-0/+17
| | | | unless the user had set the defaults to always override app settings.
* Fix bug 2452941 Add a flag to maintain the intended direct playbackJean-Michel Trivi2010-02-241-3/+21
| | | | | | of TTS data independently from the associated AudioTrack state. Only start the track when it's been stopped but is supposed to be playing.
* Setting the synth busy flag inside a synchronized block forCharles Chen2010-02-101-2/+6
| | | | thread safety.
* Fixing a race condition in the TextToSpeech service that could beCharles Chen2010-02-081-2/+12
| | | | | triggered if many long utterances are started and interrupted in rapid succession.
* Fixing a bug with the TextToSpeech speech queue processing.Charles Chen2010-02-051-2/+2
| | | | | | | The queue processor should not be called for the next item until synthesis has actually happened for the current item; before it was being incorrectly called regardless of whether or not the synthesizer had processed the current item.
* Apply EQ on the output of the speech synthesis only when using the PicoJean-Michel Trivi2010-01-112-22/+76
| | | | TTS engine.
* Merge "Enabling multiple apps to use different speech synthesis engines and ↵Charles Chen2010-01-081-0/+12
|\ | | | | | | not interfere with one another."
| * Enabling multiple apps to use different speech synthesis engines and notCharles Chen2010-01-081-0/+12
| | | | | | | | interfere with one another.
* | Remove useless start of AudioTrack for TTS and improper volume setting.Jean-Michel Trivi2010-01-081-3/+2
| | | | | | | | | | | | | | | | | | The AudioTrack that plays the synthesized audio data should only be started when the first synthesis request is sent, not after the initialization of the engine. The track volume should be initialized to it nominal level. Volumes above 1 do not provide amplification, so setting the volume to 2 is not necessary.
* | less log spewJoe Onorato2010-01-081-1/+0
|/
* Do not use a user tag on apps, as it is ignored.Jean-Baptiste Queru2010-01-061-1/+1
| | | | | | | | | | The build system does not honor user tags on apps, and setting it is misleading. This removes the confusion by making the makefiles behave like they read. Change-Id: I7c5feba1c7d07f915b97dd098584f29938a4c885
* am 014085a8: am 4bc95d19: Merge change Iab089078 into eclair-mr2Charles Chen2009-12-291-16/+21
|\ | | | | | | | | | | | | Merge commit '014085a8727d7e10a4d39cba4a6d27826b66bc00' * commit '014085a8727d7e10a4d39cba4a6d27826b66bc00': Fix for a race condition that can occur if an utterance
| * Fix for a race condition that can occur if an utteranceCharles Chen2009-12-111-16/+21
| | | | | | | | is stopped right when it completes.
* | Adding the ability to specify the speech synthesisCharles Chen2009-11-191-0/+11
| | | | | | | | engine to use for text-to-speech.
* | Adding support for plugins.Charles Chen2009-10-201-0/+65
|/
* Placeholder mdpi assetsMike Cleron2009-09-301-0/+0
|
* Newer iconsMike Cleron2009-09-301-0/+0
|
* New iconsMike Cleron2009-09-292-1/+2
|
* Modify the gain after filtering to prevent TTS clipping in en-US.Jean-Michel Trivi2009-09-011-1/+1
|
* Clean TTS logs: use a common TAG in the TTS service, don't showJean-Michel Trivi2009-08-312-26/+27
| | | | an error when loading the native synth lib.
* Add a synchronous stop method to TTS synth engine so that upon its destruction,Jean-Michel Trivi2009-08-313-2/+43
| | | | | | | 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.
* Launch synthesis thread at max priority to prevent hicups in playback.Jean-Michel Trivi2009-08-281-7/+12
| | | | | | Return and log an error when an operation cannot be completed because the speech queue is locked longer than the timeout period. Log cleanup.
* Implement clean killing of the TTS service.Jean-Michel Trivi2009-08-261-4/+62
| | | | | | | 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.
* am 0950c5de: Merge change 21226 into donutJean-Michel Trivi2009-08-181-3/+93
|\ | | | | | | | | | | | | Merge commit '0950c5de864d1ad83ed96efc5c2d1569b4d36188' into eclair * commit '0950c5de864d1ad83ed96efc5c2d1569b4d36188': Fix bug 2046705 where the output of the speech synthesizer is too low.
| * Fix bug 2046705 where the output of the speech synthesizer is too low.Jean-Michel Trivi2009-08-141-3/+93
| | | | | | | | | | | | | | | | | | | | The language files for the SVOX Pico engine result in the output of the synthesizer to be too soft, and barely audible on a phone speaker. The change implements a low shelf filter on the output of the synthesis and a drastic amplification. This works as intended because the synthesized data contains too much energy in the lower frequencies that is wasted on a phone speaker. Once filtered out, they leave room for amplication to address the volume issue.
* | am eccd6fdd: Merge change 20673 into donutJean-Michel Trivi2009-08-121-18/+79
|\ \ | |/ | | | | | | | | | | Merge commit 'eccd6fdd0d86b8610b738fc15c707eedc00ec9dc' * commit 'eccd6fdd0d86b8610b738fc15c707eedc00ec9dc': Fix bug 2043140.
| * Fix bug 2043140.Jean-Michel Trivi2009-08-111-18/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | am fbe89ec6: Revert "Fix bug 2025765."Jean-Michel Trivi2009-08-041-42/+4
|\ \ | |/ | | | | | | | | | | Merge commit 'fbe89ec6404978da7899b944d989dd9f50a468b5' * commit 'fbe89ec6404978da7899b944d989dd9f50a468b5': Revert "Fix bug 2025765."
| * Revert "Fix bug 2025765."Jean-Michel Trivi2009-08-041-42/+4
| | | | | | | | This reverts commit 9ebb59b8aa75cab1e5bb53983893b579abb63edd.
* | am 377b21e9: Merge change 9502 into donutAndroid (Google) Code Review2009-08-031-4/+42
|\ \ | |/ | | | | | | | | | | Merge commit '377b21e9f531e3fec1a5849453f886b5462e4144' * commit '377b21e9f531e3fec1a5849453f886b5462e4144': Fix bug 2025765.
| * Fix bug 2025765.Jean-Michel Trivi2009-08-031-4/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | am 2bad713f: Merge change 8860 into donutAndroid (Google) Code Review2009-07-301-31/+31
|\ \ | |/ | | | | | | | | | | Merge commit '2bad713f31d642d5350949b90b3abe00fbd9ca55' * commit '2bad713f31d642d5350949b90b3abe00fbd9ca55': Fix bug 2017664
| * Fix bug 2017664Jean-Michel Trivi2009-07-291-31/+31
| | | | | | | | | | | | | | | | | | 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.