diff options
-rw-r--r-- | core/java/android/speech/tts/TextToSpeech.java | 12 | ||||
-rw-r--r-- | core/java/android/speech/tts/TextToSpeechService.java | 4 |
2 files changed, 4 insertions, 12 deletions
diff --git a/core/java/android/speech/tts/TextToSpeech.java b/core/java/android/speech/tts/TextToSpeech.java index 0f787e7..9d570fc 100644 --- a/core/java/android/speech/tts/TextToSpeech.java +++ b/core/java/android/speech/tts/TextToSpeech.java @@ -203,12 +203,6 @@ public class TextToSpeech { public static final int USE_DEFAULTS = 0; // false /** - * Limit of length of input string passed to speak/synthesizeToFile. - * Larger strings will be rejected. - */ - public static final int MAX_SPEECH_STRING_LENGTH = 4000; - - /** * Package name of the default TTS engine. * * @hide @@ -807,8 +801,7 @@ public class TextToSpeech { * {@link #setOnUtteranceProgressListener}) and using the * {@link Engine#KEY_PARAM_UTTERANCE_ID} parameter. * - * @param text The string of text to be spoken. No longer than - * {@link Engine#MAX_SPEECH_STRING_LENGTH} characters. + * @param text The string of text to be spoken. * @param queueMode The queuing strategy to use, {@link #QUEUE_ADD} or {@link #QUEUE_FLUSH}. * @param params Parameters for the request. Can be null. * Supported parameter names: @@ -1120,8 +1113,7 @@ public class TextToSpeech { * {@link #setOnUtteranceProgressListener}) and using the * {@link Engine#KEY_PARAM_UTTERANCE_ID} parameter. * - * @param text The text that should be synthesized. No longer than - * {@link Engine#MAX_SPEECH_STRING_LENGTH} characters. + * @param text The text that should be synthesized * @param params Parameters for the request. Can be null. * Supported parameter names: * {@link Engine#KEY_PARAM_UTTERANCE_ID}. diff --git a/core/java/android/speech/tts/TextToSpeechService.java b/core/java/android/speech/tts/TextToSpeechService.java index b8eef0c..d124e68 100644 --- a/core/java/android/speech/tts/TextToSpeechService.java +++ b/core/java/android/speech/tts/TextToSpeechService.java @@ -74,7 +74,7 @@ public abstract class TextToSpeechService extends Service { private static final boolean DBG = false; private static final String TAG = "TextToSpeechService"; - + private static final int MAX_SPEECH_ITEM_CHAR_LENGTH = 4000; private static final String SYNTH_THREAD_NAME = "SynthThread"; private SynthHandler mSynthHandler; @@ -552,7 +552,7 @@ public abstract class TextToSpeechService extends Service { Log.e(TAG, "null synthesis text"); return false; } - if (mText.length() >= TextToSpeech.Engine.MAX_SPEECH_STRING_LENGTH) { + if (mText.length() >= MAX_SPEECH_ITEM_CHAR_LENGTH) { Log.w(TAG, "Text too long: " + mText.length() + " chars"); return false; } |