Code example for TextToSpeech

Methods: getDefaultEngine

0
	private static TipsPlayer instance;
 
	private TipsPlayer(Context context, Handler poster) {
		this.context = context;
		this.poster = poster;
		tts = new TextToSpeech(context, (OnInitListener) this);
		BigLog.e(tag, tts.getDefaultEngine(), '1');
	} 
 
	public static TipsPlayer getInstance(Context context, Handler poster) {
		synchronized (TipsPlayer.class) { 
			if (instance == null) {
				instance = new TipsPlayer(context, poster);
			} 
		} 
		return instance;
	} 
 
	public void receiveTip(final String phrase) {
		Log.v(tag, Logging.getCurrentMethodName(phrase));
		poster.post(new Runnable() {