1. Install FSTT SDK
Setup gradle maven
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' } <- add this line
}
}dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' } <- add this line
}
}Open file app/build.grade then add sdk:
dependencies {
...
implementation "com.github.FTechMobile:fstt-android:1.0.8"
}Initialize FSTT in file Application
Application@Override
public void onCreate(@Nullable Bundle savedInstanceState, @Nullable PersistableBundle persistentState) {
super.onCreate(savedInstanceState, persistentState);
...
STTManager.init(getApplicationContext());
}override fun onCreate() {
super.onCreate()
...
STTManager.init(this)
}Last updated