FileDocCategorySizeDatePackage
TextToSpeechICS.javaAPI DocAndroid 5.1 API964Thu Mar 12 22:22:56 GMT 2015android.support.v4.speech.tts

TextToSpeechICS

public class TextToSpeechICS extends Object
Helper class for TTS functionality introduced in ICS

Fields Summary
private static final String
TAG
Constructors Summary
Methods Summary
static android.speech.tts.TextToSpeechconstruct(android.content.Context context, android.speech.tts.TextToSpeech.OnInitListener onInitListener, java.lang.String engineName)


         
              
        if (Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
            if (engineName == null) {
                return new TextToSpeech(context, onInitListener);
            } else {
                Log.w(TAG, "Can't specify tts engine on this device");
                return new TextToSpeech(context, onInitListener);
            }
        } else {
            return new TextToSpeech(context, onInitListener, engineName);
        }