summaryrefslogtreecommitdiffstats
path: root/packages/TtsService/jni
Commit message (Collapse)AuthorAgeFilesLines
* Update TTS plugin interface to receive engine configuration dataJean-Michel Trivi2010-03-181-3/+32
| | | | | | coming from the plugin helper code (handling config and preferences). Change-Id: Ibc1d229463f11f8977552d74d1fd2aa6a6cab88e
* 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 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.
* Apply EQ on the output of the speech synthesis only when using the PicoJean-Michel Trivi2010-01-111-19/+59
| | | | TTS engine.
* 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
|
* Modify the gain after filtering to prevent TTS clipping in en-US.Jean-Michel Trivi2009-09-011-1/+1
|
* Add a synchronous stop method to TTS synth engine so that upon its destruction,Jean-Michel Trivi2009-08-311-0/+25
| | | | | | | 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.
* 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.
* | Fix issue 1795088 Improve audio routing codeEric Laurent2009-07-231-5/+5
|/ | | | | | | Initial commit for review. Integrated comments after patch set 1 review. Fixed lockup in AudioFlinger::ThreadBase::exit() Fixed lockup when playing tone with AudioPlocyService startTone()
* Increase the volume of the AudioTrack instance used for the speech synthesis.Jean-Michel Trivi2009-07-211-0/+1
|
* Reset the speech synth singleton to null when the service is destroyedJean-Michel Trivi2009-07-211-28/+36
| | | | | | 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.
* Prevent the setLanguage() method in TextToSpeech to change the languageJean-Michel Trivi2009-07-201-2/+16
| | | | | | | | 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.
* Fixing the random audio mangling problem (TTS becomes incomprehensibly fast)Charles Chen2009-07-181-1/+1
|
* Remove obsolete playBuffer() method from the text-to-speech SynthProxy class.Jean-Michel Trivi2009-07-171-22/+0
|
* Delete global ref to the weak reference to the SynthProxy in theJean-Michel Trivi2009-07-161-0/+1
| | | | | native_finalize function, that was created in native_setup to prevent leaking refs.
* Making sure that the audio buffers for speech are clearedCharles Chen2009-07-141-3/+8
| | | | so that there are no leftovers which could cause mangled output.
* Propagate optional audio stream type to the creation of the audio resourcesJean-Michel Trivi2009-07-131-18/+24
| | | | to enable the playback of TTS content on various stream types.
* Removing the ttsSynthDoneCallback logging.Charles Chen2009-07-071-1/+1
|
* Cleaning up logs.Charles Chen2009-07-071-3/+3
| | | | | | Initializing SpeechItem.mText to "" instead of null to prevent a null from accidentally being used when it is a non-text utterance.
* Adding tts result codes.Charles Chen2009-07-061-41/+67
|
* In TTS synthesis to file, remove hard coded values for the writing of the ↵Jean-Michel Trivi2009-06-301-14/+42
| | | | | | | WAV header. Corrected TTS Service manifest to allow writing to external storage. Corrected memory management when the end of synthesis is signaled.
* Expose in SynthProxy the query for the TTS supported and current language.Jean-Michel Trivi2009-06-291-10/+51
|
* Add in TTS engine interface the methods to query the availability for a ↵Jean-Michel Trivi2009-06-291-1/+2
| | | | | | | language, to set the synthesis audio format, to query the current language, country and variant setting.
* Use the same interface in the TTS engine interface for setLanguage and ↵Jean-Michel Trivi2009-06-261-2/+30
| | | | | | loadLanguage. Adding function to check the support level for a language in TTS engine interface.
* In the native layer for the TTS service, delete the data allocated for the ↵Jean-Michel Trivi2009-06-251-4/+12
| | | | callback after the signal for the end of the synthesis has been received.
* Fix bug in TTS service where the language setting was using the default languageJean-Michel Trivi2009-06-241-7/+7
| | | | | | 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.
* Adding support for pitch changes of the synthesized text in Text-To-Speech.Jean-Michel Trivi2009-06-231-1/+27
|
* Using Locale to specify language and country for a TTS language to load,Jean-Michel Trivi2009-06-171-8/+10
| | | | | rather than a String. Cleanup in doc for TextToSpeech, and addition of queue mode constants.
* Updating TTS engine interface for setting the language based on language, ↵Jean-Michel Trivi2009-06-161-3/+5
| | | | | | country and variant codes coming from a java.util.Locale instance.
* Restructuring the TTS files so that it works as a ServiceCharles Chen2009-06-102-0/+647