@Implements(value=android.speech.tts.TextToSpeech.class) public class ShadowTextToSpeech extends Object
Constructor and Description |
---|
ShadowTextToSpeech() |
Modifier and Type | Method and Description |
---|---|
protected void |
__constructor__(Context context,
TextToSpeech.OnInitListener listener) |
void |
clearLastSpokenText() |
Context |
getContext() |
String |
getLastSpokenText() |
TextToSpeech.OnInitListener |
getOnInitListener() |
int |
getQueueMode() |
boolean |
isShutdown() |
boolean |
isStopped() |
protected void |
shutdown() |
protected int |
speak(CharSequence text,
int queueMode,
Bundle params,
String utteranceId) |
protected int |
speak(String text,
int queueMode,
HashMap<String,String> params)
Speaks the string using the specified queuing strategy and speech parameters.
|
protected int |
stop() |
@Implementation protected void __constructor__(Context context, TextToSpeech.OnInitListener listener)
@Implementation protected int speak(String text, int queueMode, HashMap<String,String> params)
Speaks the string using the specified queuing strategy and speech parameters.
params
- The real implementation converts the hashmap into a bundle, but the bundle argument is not used in the shadow implementation.@Implementation(minSdk=21) protected int speak(CharSequence text, int queueMode, Bundle params, String utteranceId)
@Implementation protected void shutdown()
@Implementation protected int stop()
public Context getContext()
public TextToSpeech.OnInitListener getOnInitListener()
public String getLastSpokenText()
public void clearLastSpokenText()
public boolean isShutdown()
public boolean isStopped()
true
if the TTS is stopped.public int getQueueMode()