Is there an iPhone API that allows me to use Voice

2019-07-02 20:00发布

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

3条回答
三岁会撩人
2楼-- · 2019-07-02 20:06

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

查看更多
该账号已被封号
3楼-- · 2019-07-02 20:10

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

查看更多
太酷不给撩
4楼-- · 2019-07-02 20:10

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

查看更多
登录 后发表回答