2020-12-29 17:15:24 +00:00
|
|
|
package rs.tts
|
|
|
|
|
|
|
|
import android.app.NativeActivity
|
2020-12-29 20:10:39 +00:00
|
|
|
import android.speech.tts.TextToSpeech
|
2020-12-29 17:15:24 +00:00
|
|
|
import android.speech.tts.TextToSpeech.OnInitListener
|
|
|
|
|
|
|
|
class MainActivity : NativeActivity(), OnInitListener {
|
2020-12-29 20:10:39 +00:00
|
|
|
override fun onInit(status:Int) {
|
|
|
|
if(status == TextToSpeech.SUCCESS) {
|
|
|
|
println("Successfully initialized TTS!")
|
|
|
|
} else {
|
|
|
|
println("Failed to initialize TTS.")
|
|
|
|
}
|
|
|
|
}
|
2020-12-29 17:15:24 +00:00
|
|
|
}
|