2020-12-30 15:23:13 +00:00
|
|
|
package rs.tts;
|
|
|
|
|
|
|
|
import android.speech.tts.TextToSpeech;
|
2020-12-30 17:37:46 +00:00
|
|
|
import android.speech.tts.UtteranceProgressListener;
|
2020-12-30 15:23:13 +00:00
|
|
|
|
|
|
|
@androidx.annotation.Keep
|
2020-12-30 17:37:46 +00:00
|
|
|
public class Bridge extends UtteranceProgressListener implements TextToSpeech.OnInitListener {
|
2020-12-30 15:23:13 +00:00
|
|
|
public int backendId;
|
|
|
|
|
|
|
|
public Bridge(int backendId) {
|
|
|
|
this.backendId = backendId;
|
|
|
|
}
|
|
|
|
|
2020-12-30 17:37:46 +00:00
|
|
|
public native void onInit(int status);
|
|
|
|
|
|
|
|
public native void onStart(String utteranceId);
|
|
|
|
|
|
|
|
public native void onStop(String utteranceId, Boolean interrupted);
|
|
|
|
|
|
|
|
public native void onDone(String utteranceId);
|
|
|
|
|
|
|
|
public native void onError(String utteranceId) ;
|
2020-12-30 15:23:13 +00:00
|
|
|
|
|
|
|
}
|