Jean-Michel Trivi
9f5eadd2ee
Unhide the broadcast intent that signals completion of the TTS language
...
files. This is required for bug 2022435.
Correct the javadoc where two intents were mislabelled as broadcast,
but were activity actions.
2009-08-14 15:44:31 -07:00
Android (Google) Code Review
370e1f7439
Merge change 21038 into donut
...
* changes:
Propagate info about whether a "call" command was issued in RecognitionResult.
2009-08-12 18:05:50 -07:00
Mike LeBeau
840d0f528f
Propagate info about whether a "call" command was issued in RecognitionResult.
...
This is needed for the fix of http://b/2018041 .
2009-08-12 18:03:31 -07:00
Jean-Michel Trivi
69e67a3e2e
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.
2009-08-11 15:09:45 -07:00
Jean-Michel Trivi
77a5d39343
Fix bug 2022435.
...
Add new intent and matching extra to signal the completion of the
language pack installer. This is used by CL 20513.
2009-08-07 17:29:15 -07:00
Jean-Michel Trivi
ed06578edd
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.
2009-07-29 11:26:10 -07:00
Jean-Michel Trivi
9c53a5c01f
Resetting the setLanguage() call to its intended behavior after change 8089
...
which works around the bug where a language cannot be set if the default
language (which is loaded upon initialization) isn't eng-USA.
2009-07-22 11:15:23 -07:00
Jean-Michel Trivi
1126aad736
Revert the setLanguage() call to its previous implementation as
...
waiting to change the language right before a call to speak can
put the engine in an unstable state.
2009-07-20 19:14:18 -07:00
Jean-Michel Trivi
5e11a6ad00
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.
2009-07-20 16:07:57 -07:00
Charles Chen
904dfa5884
Adding missing addEarcon method. Not having this was a bug as
...
this method is needed to add earcons; otherwise, there is
nothing for playEarcon to play.
2009-07-15 10:46:33 -07:00
Jean-Michel Trivi
62253a319d
Unhide required definitions in TextToSpeech.Engine that cover return codes and
...
extras for android.intent.action.CHECK_TTS_DATA intent, and the key values
for the parameter hashmap that can be passed by an application in speak(),
synthesizeToFile(), playSilence() and playEarcon().
2009-07-14 17:37:07 -07:00
Charles Chen
78c9d0d2c5
Adding Utterance ID to the TtsService.
2009-07-13 17:46:19 -07:00
Charles Chen
630a8de44f
Fixing TTS breakage.
2009-07-10 20:58:15 -07:00
Jean-Michel Trivi
a981013aa7
Add support in TextToSpeech for an audio stream type param and utterance
...
ID specified as a hashmap param in the synthesis calls.
Fix a bug where the cached parameters were not passed to the service
when synthesizing to a file.
2009-07-10 13:45:47 -07:00
Charles Chen
a9c5e4bf26
Adding tagging to utterances to track which app said what.
2009-07-10 09:43:03 -07:00
Charles Chen
748efcc3fb
Adding a missing catch
2009-07-08 16:12:29 -07:00
Jean-Michel Trivi
e28aced7bb
Remove unused definitions for default language in TextToSpeech as
...
the default language is determined by the current Locale, not a hardcoded
value. Add a value for the default TTS engine to use.
2009-07-08 14:20:33 -07:00
Jean-Michel Trivi
da7681e7b6
Optimize storing of cached TTS parameters. Initialize the cached
...
language settings with the current Locale.
2009-07-07 15:15:39 -07:00
Charles Chen
c8ba3b560c
Propagating error codes to TextToSpeech.java
2009-07-07 11:38:48 -07:00
Charles Chen
52ae06521a
Fixes a compatibility issue with users that have the old TTS
...
installed already.
2009-07-06 16:10:32 -07:00
Charles Chen
a3f89295ad
Propagating the error codes through the TtsService
2009-07-06 14:14:52 -07:00
Charles Chen
4bca97ecaf
Removing IPA - IPA is already handled by the phoneme tag.
2009-07-02 17:21:22 -07:00
Jean-Michel Trivi
62788e9b48
Unhide android.speech.tts.TextToSpeech
2009-07-02 16:29:30 -07:00
Charles Chen
99a0feecd0
Adding strings for data root and data files - these are needed
...
for returning this information in an Intent from checkVoiceData.
2009-07-02 11:29:26 -07:00
Jean-Michel Trivi
ddb0a803fd
Adding in TTS service support for language query and level of support.
2009-06-29 16:58:32 -07:00
Charles Chen
5c22f516be
Adding status return codes for TTS calls.
2009-06-29 16:25:58 -07:00
Charles Chen
d4989093ed
Adding implementation of IPA to the TextToSpeech.java
2009-06-26 15:56:10 -07:00
Charles Chen
f032bc7da5
Adding in the playSilence method to TextToSpeech.java
2009-06-26 14:41:55 -07:00
Charles Chen
741c25b164
Adding skeleton methods for IPA support.
2009-06-26 10:14:44 -07:00
Jean-Michel Trivi
87c9684fd0
Add caching of the speech rate and language in android.speech.tts.TextToSpeech
...
so the speech params can be passed along in calls for text synthesis.
2009-06-25 14:29:15 -07:00
Charles Chen
aaf842edbf
Updating the TextToSpeech.java with skeleton methods.
2009-06-25 11:59:29 -07:00
Jean-Michel Trivi
2ea5349583
Adding support for pitch changes of the synthesized text in Text-To-Speech.
2009-06-23 15:26:57 -07:00
Jean-Michel Trivi
d146874d73
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.
2009-06-18 14:46:25 -07:00
Jean-Michel Trivi
679d728f09
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.
2009-06-17 10:16:17 -07:00
Jean-Michel Trivi
91bf30a477
TextToSpeech class cleanups
...
- harmonized private member variable names
- added success / failure codes (used for now in initialization)
- synchronized access to speech completed listener.
2009-06-11 14:35:48 -07:00
Jean-Michel Trivi
a8518c169b
Renaming the Tts class to TextToSpeech for clarity.
...
Switching to HashMap for parameter lists to pass key-value parameter pairs.
Using TODO instead of FIXME in comments.
Removing methods that don't belong anymore to the TTS interface now the feature
becomes part of the platform.
2009-06-10 21:32:38 -07:00
Charles Chen
f85aa5a4d4
Restructuring the TTS files so that it works as a Service
2009-06-10 13:31:09 -07:00
Jean-Michel Trivi
bac43254b2
In Tts class, removing method to set the specific engine to use as the
...
framework is always using the engine selected in the Text-To-Speech service.
2009-06-08 17:37:25 -07:00
Jean-Michel Trivi
21a6a6d26b
Moving the Tts java class from the android.tts package to the android.speech.tts package.
...
The Tts class (still hidden at this point) is the only Text-To-Speech class that will be
exposed to application developers.
2009-06-08 16:39:01 -07:00
Mitsuru Oshima
409895e374
Moved error status from SpeechServiceRecognizerListener
2009-06-08 02:28:04 -07:00
Mitsuru Oshima
34b234d53f
* Chagned RecognitionService interface to use more complex RecognitionResult instead of String.
2009-05-29 16:54:55 -07:00
Brandon Ballinger
cdd0ac6d85
AI 148484: (1) Pass recognizer intent to RecognitionService when starting to listen.
...
(2) Return error strings to client rather than error types.
Automated import of CL 148484
2009-05-07 14:24:02 -07:00
Brandon Ballinger
181a44dd81
AI 146613: Move Recognition service declarations to frameworks/base/core/java/android/speech. Hide them from public API by default (no changes to current.xml).
...
Automated import of CL 146613
2009-04-16 14:31:48 -07:00
Andy Stadler
f8a7ceaef2
AI 145778: Manual merge changes 145382-145384 from cupcake.
...
Automated import of CL 145778
2009-04-10 16:24:47 -07:00
The Android Open Source Project
9066cfe988
auto import from //depot/cupcake/@135843
2009-03-03 19:31:44 -08:00
The Android Open Source Project
d83a98f4ce
auto import from //depot/cupcake/@135843
2009-03-03 18:28:45 -08:00
The Android Open Source Project
076357b856
auto import from //depot/cupcake/@132589
2009-03-03 14:04:24 -08:00
The Android Open Source Project
3dec7d563a
auto import from //depot/cupcake/@137055
2009-03-02 22:54:33 -08:00
The Android Open Source Project
3001a03543
auto import from //branches/cupcake/...@132276
2009-02-19 10:57:31 -08:00
The Android Open Source Project
d24b8183b9
auto import from //branches/cupcake/...@130745
2009-02-10 15:44:00 -08:00