original question
I have a standard texttospeech, android.speech.tts.TextToSpeech
I initialize it and set a language by using tts.setLan
After creating an object of TextToSpeech
class, you should configure it (or check it's available state/values) into TextToSpeech.OnInitListener
's onInit()
callback. You will get reliable information there about your TextToSpeech
object.
Check my answer here: https://stackoverflow.com/a/65620221/7835969