Using AVSpeechSynthesizer/AVSpeechUtterance for Text-To-Speech will not work if SpeakSelection is not enabled in device's Accessiblity settings

三世轮回 提交于 2019-12-08 05:48:56

问题


I use AVSpeechSynthesizer and AVSpeechUtterance for text-to-speech. It works fine, but the User must enable SpeakSelection feature in his/her device's accessibility settings. Is there a way to do it for them, or at least check the settings and warn them?


回答1:


Maybe you can try to say something, attach delegate and measure duration of speaking. If duration of speaking out yours text is near zero, user should check settings/download voice or so!



来源:https://stackoverflow.com/questions/26181764/using-avspeechsynthesizer-avspeechutterance-for-text-to-speech-will-not-work-if

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!