Browse Source

TtsService: add wrappers for the new voice APIs.

This adds method declarations for the new voice APIs, forwarding
them to the default implementations.
master
Reece H. Dunn 10 years ago
parent
commit
7846e91089
1 changed files with 20 additions and 0 deletions
  1. 20
    0
      android/src/com/reecedunn/espeak/TtsService.java

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

@@ -198,6 +198,26 @@ public class TtsService extends TextToSpeechService {
return result;
}

@Override
public String onGetDefaultVoiceNameFor(String language, String country, String variant) {
return super.onGetDefaultVoiceNameFor(language, country, variant);
}

@Override
public List<android.speech.tts.Voice> onGetVoices() {
return super.onGetVoices();
}

@Override
public int onIsValidVoiceName(String name) {
return super.onIsValidVoiceName(name);
}

@Override
public int onLoadVoice(String name) {
return super.onLoadVoice(name);
}

@Override
protected void onStop() {
Log.i(TAG, "Received stop request.");

Loading…
Cancel
Save