summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPrzemyslaw Szczepaniak <pszczepaniak@google.com>2012-11-16 05:11:23 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-11-16 05:11:23 -0800
commitc3c427d2e3d7fbfb7cd5d6473bf203af2001bcec (patch)
tree0f5ea91ee9a0676b4540d91bf8dd70e2cf37592e /core
parentf288a64f5bed290d162c1a6fd54bea7c0ba14042 (diff)
downloadframeworks_base-c3c427d2e3d7fbfb7cd5d6473bf203af2001bcec.zip
frameworks_base-c3c427d2e3d7fbfb7cd5d6473bf203af2001bcec.tar.gz
frameworks_base-c3c427d2e3d7fbfb7cd5d6473bf203af2001bcec.tar.bz2
Revert "Make TTS input string limit public and documented"
This reverts commit f288a64f5bed290d162c1a6fd54bea7c0ba14042 Change-Id: I6f3e2a6a6a131b0422cfcdb2bda23f8ae245d774
Diffstat (limited to 'core')
-rw-r--r--core/java/android/speech/tts/TextToSpeech.java12
-rw-r--r--core/java/android/speech/tts/TextToSpeechService.java4
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;
}