Global TTS in Android

后端 未结 3 1438
春和景丽
春和景丽 2021-01-21 04:31

Hi I am devloping an application for blind users so that I use very often text to speech as practicaly the only one method how to respond on user actions. I decided to make one

3条回答
  •  北恋
    北恋 (楼主)
    2021-01-21 05:07

    Initialize your global instance from onActivityResult(), after you know that TTS data is available. Your app needs an activity, so do it from the entry activity, all subsequent ones will be able to use your global instance once it is initialized. Also think about when and how you will shut it down.

提交回复
热议问题