TtsService: onSynthesizeText does not need to set the language (this is done by setLanguage/setVoice

This commit is contained in:
Reece H. Dunn
2015-10-10 15:07:33 +01:00
parent 385a18bf04
commit 059f88138e
@@ -258,7 +258,7 @@ public class TtsService extends TextToSpeechService {
@Override
protected synchronized void onSynthesizeText(SynthesisRequest request, SynthesisCallback callback) {
if (selectVoice(request) == TextToSpeech.ERROR)
if (mMatchingVoice == null)
return;
String text = getRequestString(request);