Code example for TextToSpeech

Methods: getLanguage

0
	public String getLanguage()
	{ 
		if (!initialized) {
			return ""; 
		} 
		Locale locale = tts.getLanguage();
		if (DBG) Log.d(LCAT, "getLanguage:" + locale.toString());
		return locale.toString();
	} 
		 
	@Kroll.method 
	public boolean isSpeaking() { 
		if (DBG) Log.d(LCAT, "isSpeaking" );
		if (initialized) {
			return tts.isSpeaking();
		} 
		return false; 
	} 
	 
	@Kroll.method 
	public boolean speak(String text, @Kroll.argument(optional = true) String utteranceId) {