starting text to speech engine from a service?

前端 未结 1 1037
遥遥无期
遥遥无期 2021-01-07 03:40

i have a service from where i am trying to start a TextToSpeech engine ,but it seems that it\'s not working , so is it possible to start tts from a service?

here\'s

相关标签:
1条回答
  • 2021-01-07 04:30

    new TextToSpeech(getApplicationContext(),this);

    works with me... But be sure to let the service run , until speech is done..

    0 讨论(0)
提交回复
热议问题