1 package com.android.cts.tts.helper;
2 
3 import android.speech.tts.SynthesisCallback;
4 import android.speech.tts.SynthesisRequest;
5 import android.speech.tts.TextToSpeech;
6 import android.speech.tts.TextToSpeechService;
7 
8 /**
9  * Stub implementation of TTS service
10  */
11 public class TTSHelperService extends TextToSpeechService {
12 
TTSHelperService()13   public TTSHelperService() {}
14 
15   @Override
onIsLanguageAvailable(String lang, String country, String variant)16   protected int onIsLanguageAvailable(String lang, String country, String variant) {
17     return TextToSpeech.LANG_AVAILABLE;
18   }
19 
20   @Override
onLoadLanguage(String lang, String country, String variant)21   public int onLoadLanguage(String lang, String country, String variant) {
22     return TextToSpeech.LANG_AVAILABLE;
23   }
24 
25   @Override
onStop()26   protected void onStop() {
27     return;
28   }
29 
30   @Override
onSynthesizeText(SynthesisRequest request, SynthesisCallback callback)31   protected void onSynthesizeText(SynthesisRequest request, SynthesisCallback callback) {
32     return;
33   }
34 
35   @Override
onGetLanguage()36   protected String[] onGetLanguage() {
37     return new String[] {"", "", ""};
38   }
39 }
40