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



@Override @Override
protected synchronized void onSynthesizeText(SynthesisRequest request, SynthesisCallback callback) { protected synchronized void onSynthesizeText(SynthesisRequest request, SynthesisCallback callback) {
if (selectVoice(request) == TextToSpeech.ERROR)
if (mMatchingVoice == null)
return; return;


String text = getRequestString(request); String text = getRequestString(request);

Loading…
Cancel
Save