Code examples for TextToSpeech

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
287:	Set<String> features = mTts.getFeatures(mTts.getLanguage()); 
-
310:	(mTts.isLanguageAvailable(mTts.getLanguage()) >= TextToSpeech.LANG_AVAILABLE)) { 
-
314:	mTts.speak(sample, TextToSpeech.QUEUE_FLUSH, params); 
Full Snippet Info
8
CodeRank
73:	mTts = new TextToSpeech(context, (OnInitListener)this); 
Full Snippet Info
7
CodeRank
45:	myTTS = new TextToSpeech(this, this); 
46:	myTTS.setLanguage(Locale.US); 
Full Snippet Info
7
CodeRank
64:	int result = mTts.setLanguage(Locale.UK); 
-
77:	mTts.setPitch(1.6f); 
78:	mTts.setSpeechRate(1.05f); 
-
93:	mTts.speak(message, 
Full Snippet Info
7
CodeRank
64:	int result = mTts.setLanguage(Locale.US); 
Full Snippet Info
6
CodeRank
150:	mTts.setOnUtteranceProgressListener(new UtteranceProgressListener() { 
-
426:	mPreviousEngine); 
Full Snippet Info
6
CodeRank
93:	mTts.stop(); 
94:	mTts.shutdown(); 
-
101:	int result = mTts.setLanguage(Locale.ENGLISH); 
-
104:	mTts.setOnUtteranceCompletedListener(this); 
Full Snippet Info
6
CodeRank
51:	if (tts.isLanguageAvailable(locale) >= 
-
53:	tts.setLanguage(locale); 
54:	tts.setPitch(1.5f); 
55:	tts.setSpeechRate(1.5f); 
Full Snippet Info
6
CodeRank
568:	mTts.addEarcon(earconName, getPackageName(), resourceId); 
-
573:	mTts.playEarcon(earconName, QUEUING_MODE_INTERRUPT, null); 
Full Snippet Info
6
CodeRank
152:	mTts.setOnUtteranceCompletedListener(this); 
-
155:	int result = mTts.isLanguageAvailable(l); 
-
160:	mTts.setLanguage(l); 
-
166:	mTts.setSpeechRate(0.85f); 
-
194:	Thread.sleep(1000); 
-
205:	m.play(mTts); 
Full Snippet Info
6
CodeRank
176:	mTts.setLanguage(Locale.US); 
Full Snippet Info
6
CodeRank
76:	tts = new TextToSpeech(this, this); 
Full Snippet Info
6
CodeRank