TtsService: add wrappers for the new voice APIs.

This adds method declarations for the new voice APIs, forwarding
them to the default implementations.
This commit is contained in:
Reece H. Dunn
2014-10-29 15:59:48 +00:00
parent d90e58f9cd
commit 7846e91089
@@ -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.");