问题
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