method public abstract void onUtteranceCompleted(java.lang.String);
}
public class TextToSpeechClient {
ctor public TextToSpeechClient(android.content.Context, java.lang.String, boolean, android.speech.tts.TextToSpeechClient.RequestCallbacks, android.speech.tts.TextToSpeechClient.ConnectionCallbacks);
ctor public TextToSpeechClient(android.content.Context, android.speech.tts.TextToSpeechClient.RequestCallbacks, android.speech.tts.TextToSpeechClient.ConnectionCallbacks);
method public void connect();
method public void disconnect();
method public android.speech.tts.TextToSpeechClient.EngineStatus getEngineStatus();
method public boolean isConnected();
method public void queueAudio(android.net.Uri, android.speech.tts.TextToSpeechClient.UtteranceId, android.speech.tts.RequestConfig, android.speech.tts.TextToSpeechClient.RequestCallbacks);
method public void queueSilence(long, android.speech.tts.TextToSpeechClient.UtteranceId, android.speech.tts.TextToSpeechClient.RequestCallbacks);
method public void queueSpeak(java.lang.String, android.speech.tts.TextToSpeechClient.UtteranceId, android.speech.tts.RequestConfig, android.speech.tts.TextToSpeechClient.RequestCallbacks);
method public void queueSynthesizeToFile(java.lang.String, android.speech.tts.TextToSpeechClient.UtteranceId, java.io.File, android.speech.tts.RequestConfig, android.speech.tts.TextToSpeechClient.RequestCallbacks);
method public void stop();
}
public static abstract interface TextToSpeechClient.ConnectionCallbacks {
method public abstract void onConnectionFailure();
method public abstract void onConnectionSuccess();
method public abstract void onEngineStatusChange(android.speech.tts.TextToSpeechClient.EngineStatus);
method public abstract void onServiceDisconnected();
}
public static final class TextToSpeechClient.EngineStatus {
method public java.lang.String getEnginePackage();
method public java.util.List<android.speech.tts.VoiceInfo> getVoices();
}
public static final class TextToSpeechClient.Params {
field public static final java.lang.String AUDIO_PARAM_PAN = "pan";
field public static final java.lang.String AUDIO_PARAM_STREAM = "streamType";
field public static final java.lang.String AUDIO_PARAM_VOLUME = "volume";
field public static final java.lang.String FALLBACK_VOICE_NAME = "fallbackVoiceName";
field public static final java.lang.String NETWORK_RETRIES_COUNT = "networkRetriesCount";
field public static final java.lang.String NETWORK_TIMEOUT_MS = "networkTimeoutMs";
field public static final java.lang.String SPEECH_PITCH = "speechPitch";
field public static final java.lang.String SPEECH_SPEED = "speechSpeed";
field public static final java.lang.String TRACK_SUBUTTERANCE_PROGRESS = "trackSubutteranceProgress";
}
public static abstract class TextToSpeechClient.RequestCallbacks {
ctor public TextToSpeechClient.RequestCallbacks();
method public void onSynthesisFailure(android.speech.tts.TextToSpeechClient.UtteranceId, int);
method public void onSynthesisFallback(android.speech.tts.TextToSpeechClient.UtteranceId);
method public void onSynthesisProgress(android.speech.tts.TextToSpeechClient.UtteranceId, int, int);
method public void onSynthesisStart(android.speech.tts.TextToSpeechClient.UtteranceId);
method public void onSynthesisStop(android.speech.tts.TextToSpeechClient.UtteranceId);
method public void onSynthesisSuccess(android.speech.tts.TextToSpeechClient.UtteranceId);
}
public static final class TextToSpeechClient.Status {
field public static final int ERROR_DOWNLOADING_ADDITIONAL_DATA = 17; // 0x11
field public static final int ERROR_INVALID_REQUEST = 15; // 0xf
field public static final int ERROR_NETWORK = 13; // 0xd
field public static final int ERROR_NETWORK_TIMEOUT = 14; // 0xe
field public static final int ERROR_NON_UNIQUE_UTTERANCE_ID = 16; // 0x10
field public static final int ERROR_OUTPUT = 12; // 0xc
field public static final int ERROR_SERVICE = 11; // 0xb
field public static final int ERROR_SYNTHESIS = 10; // 0xa
field public static final int ERROR_UNKNOWN = -1; // 0xffffffff
field public static final int STOPPED = 100; // 0x64
field public static final int SUCCESS = 0; // 0x0
}
public static class TextToSpeechClient.UtteranceId {
ctor public TextToSpeechClient.UtteranceId();
method public final java.lang.String toUniqueString();
}
public abstract class TextToSpeechService extends android.app.Service {