Browse Source

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

master
Reece H. Dunn 9 years ago
parent
commit
059f88138e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      android/src/com/reecedunn/espeak/TtsService.java

+ 1
- 1
android/src/com/reecedunn/espeak/TtsService.java View File

@@ -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);

Loading…
Cancel
Save