Text to speech returns a different non-existant Locale after setting an existing one

后端 未结 2 680
有刺的猬
有刺的猬 2021-01-22 19:18

original question

I have a standard texttospeech, android.speech.tts.TextToSpeech

I initialize it and set a language by using tts.setLan

2条回答
  •  不思量自难忘°
    2021-01-22 19:32

    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

提交回复
热议问题