【问题标题】:Is there an iPhone API that allows me to use VoiceOver directly in my app?是否有允许我直接在我的应用程序中使用 VoiceOver 的 iPhone API?
【发布时间】:2010-05-13 20:43:05
【问题描述】:

我想让用户直接从我的应用中按下一个按钮,然后使用 VoiceOver 阅读屏幕上的内容。现在,我唯一的选择是捆绑每个页面的录音,并在用户按下按钮时播放它们。 VoiceOver 将真正简化这个过程。有可能吗?

谢谢!
托马斯

【问题讨论】:

  • 不确定。我一定是误击了它。对不起!

标签: iphone xcode accessibility accessibility-api


【解决方案1】:

你可以用这个

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

更多 API 详情...

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

【讨论】:

    【解决方案2】:

    不,有关想要做类似事情的人的更多信息,请参阅this link

    【讨论】:

      【解决方案3】:

      我遇到了类似的问题……为了避免录制大量音频……您可以使用非本地文本转语音,如 Flite 引擎(免费)。不幸的是,原生 Voice Over 仍然是私有的 - 并且还劫持了您希望用于按钮按下的触摸!

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2022-11-04
        • 1970-01-01
        • 2011-03-31
        • 1970-01-01
        • 2012-10-21
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多