diff options
| author | Jean-Michel Trivi <jmtrivi@google.com> | 2009-06-18 14:41:41 -0700 | 
|---|---|---|
| committer | Jean-Michel Trivi <jmtrivi@google.com> | 2009-06-18 14:46:25 -0700 | 
| commit | d146874d7341bc9602c93719582b4209e7b81f01 (patch) | |
| tree | c7f898fd22c65d837d96170532c85d96f99db84b /core/java/android/speech | |
| parent | e748161ca89867e8c57d4e71c780486d4de8039c (diff) | |
| download | frameworks_base-d146874d7341bc9602c93719582b4209e7b81f01.zip frameworks_base-d146874d7341bc9602c93719582b4209e7b81f01.tar.gz frameworks_base-d146874d7341bc9602c93719582b4209e7b81f01.tar.bz2 | |
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.
Diffstat (limited to 'core/java/android/speech')
| -rwxr-xr-x | core/java/android/speech/tts/TextToSpeech.java | 22 | 
1 files changed, 22 insertions, 0 deletions
| diff --git a/core/java/android/speech/tts/TextToSpeech.java b/core/java/android/speech/tts/TextToSpeech.java index 8f58194..9fc143d 100755 --- a/core/java/android/speech/tts/TextToSpeech.java +++ b/core/java/android/speech/tts/TextToSpeech.java @@ -81,6 +81,28 @@ public class TextToSpeech {      }      /** +     * Internal constants for the TTS functionality +     * +     * {@hide} +     */ +    public class Engine { +        // default values for a TTS engine when settings are not found in the provider +        public static final int FALLBACK_TTS_DEFAULT_RATE = 100; // 1x +        public static final int FALLBACK_TTS_DEFAULT_PITCH = 100;// 1x +        public static final int FALLBACK_TTS_USE_DEFAULTS = 0; // false +        public static final String FALLBACK_TTS_DEFAULT_LANG = "eng"; +        public static final String FALLBACK_TTS_DEFAULT_COUNTRY = ""; +        public static final String FALLBACK_TTS_DEFAULT_VARIANT = ""; + +        // return codes for a TTS engine's check data activity +        public static final int CHECK_VOICE_DATA_PASS = 1; +        public static final int CHECK_VOICE_DATA_FAIL = 0; +        public static final int CHECK_VOICE_DATA_BAD_DATA = -1; +        public static final int CHECK_VOICE_DATA_MISSING_DATA = -2; +        public static final int CHECK_VOICE_DATA_MISSING_DATA_NO_SDCARD = -3; +    } + +    /**       * Connection needed for the TTS.       */      private ServiceConnection mServiceConnection; | 
