You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
api-impl: misc stubs and trivial impls
This commit is contained in:
33
src/api-impl/android/speech/tts/TextToSpeech.java
Normal file
33
src/api-impl/android/speech/tts/TextToSpeech.java
Normal file
@@ -0,0 +1,33 @@
|
||||
package android.speech.tts;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
|
||||
public class TextToSpeech {
|
||||
public static final int ERROR = -1;
|
||||
|
||||
public TextToSpeech(Context context, TextToSpeech.OnInitListener listener) {
|
||||
new Handler(Looper.getMainLooper()).post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
listener.onInit(ERROR);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public int setOnUtteranceCompletedListener(TextToSpeech.OnUtteranceCompletedListener listener) {
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
public void shutdown() {
|
||||
}
|
||||
|
||||
public static interface OnInitListener {
|
||||
abstract void onInit(int status);
|
||||
}
|
||||
|
||||
public static interface OnUtteranceCompletedListener {
|
||||
public abstract void onUtteranceCompleted(String utteranceId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user