Is there an iPhone API that allows me to use VoiceOver directly in my app?

梦想与她 提交于 2019-12-10 19:16:24

问题


I'd like to allow a user to press a button directly from my app and read what's on the screen using VoiceOver. Right now, my only option is bundling recordings of each page and just playing them when the user presses the button. VoiceOver would really simplify this process. Is it possible?

Thanks!
Thomas


回答1:


No, for more info on someone who wanted to do something similar see this link




回答2:


You could use this

if (UIAccessibilityIsVoiceOverRunning()) {
   UIAccessibilityPostNotification(UIAccessibilityAnnouncementNotification,
                                   @"Result has been computed.");
}

For further API details...

http://developer.apple.com/library/ios/#documentation/uikit/reference/UIKitFunctionReference/Reference/reference.html




回答3:


I came up against something similar.. to avoid recording a massive pile of audio ... you can use non native Text To Speech like the Flite Engine (which is free). Unfortunately the native Voice Over remains private - and also hijacks the touches you would hope to use for button presses!

https://bitbucket.org/sfoster/iphone-tts



来源:https://stackoverflow.com/questions/2830176/is-there-an-iphone-api-that-allows-me-to-use-voiceover-directly-in-my-app

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