iOS 13语音控制辅助功能-是否可以执行更多自定义操作(而不仅仅是链接到辅助功能标签)? [英] iOS 13 Voice Control Accessibility Feature - is there a way to do more custom actions (rather than just linking to accessibility labels)?

查看:356
本文介绍了iOS 13语音控制辅助功能-是否可以执行更多自定义操作(而不仅仅是链接到辅助功能标签)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新的语音控制API非常酷,它是您可以与iOS设备通话并执行操作的API. ( Apple的视频)

The new Voice Control API is super cool, it's the one where you can speak to your iOS device and perform actions. (Video from Apple)

我唯一的抱怨是,很难找到有关它的信息.我没有看到任何WWDC视频,也找不到任何其他文档.

My only gripe is that finding information on it is kinda difficult. I don't see any WWDC videos out there on it, and I can't find any other documentation.

它基本上由accessibilityLabels驱动.由于每个accessibilityElement实际上只能有一个accessibilityLabel,因此(据我所见)仅限于此.

It's basically powered by accessibilityLabels. Since each accessibilityElement can really only have one accessibilityLabel it's (from what I can see) limited to that.

那是准确的吗?有没有办法为用户提供更多自定义操作?例如,有可访问性自定义操作API,该API可让您通过向上/向下滑动VoiceOver来添加更多内容,但是语音控件似乎无法以任何方式使用它们,而只是accessibilityLabel.

Is that accurate? Is there a way to provide users with more custom actions? For instance there's the accessibility custom actions API that allows you to add more by swiping up/down with VoiceOver, but those don't seem to be available in any way to Voice Control, it's just the accessibilityLabel.

这是一个很酷的API,但是通过VoiceOver自定义动作和转子动作,我通常可以为用户提供更易于访问的动作,而我不知道如何为使用语音控制的用户做到这一点.

It's such a cool API, but with VoiceOver custom actions and rotor actions I can normally provide more easily accessible actions to users, and I can't figure out how to do that for a user who uses Voice Control.

推荐答案

它基本上由accessibilityLabels提供支持.

It's basically powered by accessibilityLabels.

关于此令人惊叹的新功能,什么都没有突出显示,但其 notification 很遗憾.

Nothing is highlighted about this amazing new feature but its 'accessibilityUserInputLabels' property that enables changing labels specifically for some items: neither event name nor notification are exposed unfortunately.

标签代表有声地选择项目的一种有趣方式,但我不确定它们是否会被用户最多使用:在某些情况下,显示带有数字的项目似乎更有效(VoiceControl➔show numbers) .

Labels represent an interesting way of choosing items vocally but I'm not sure that they will be the most used by users: displaying items with numbers seems to be more efficient in certain circumstances (VoiceControl ➔ show numbers).

iOS 13的正式发行版应该在最终文档中提供一些消息.

The official release of iOS 13 should provide some news in the final documentation.

是否可以为用户提供更多自定义操作?例如,有可访问性自定义操作API,该API可让您通过向上/向下滑动VoiceOver来添加更多内容,但是语音控件似乎无法以任何方式使用它们,而只是accessibilityLabel.

Is there a way to provide users with more custom actions? For instance there's the accessibility custom actions API that allows you to add more by swiping up/down with VoiceOver, but those don't seem to be available in any way to Voice Control, it's just the accessibilityLabel.

此新功能的有趣之处在于,人们可以像触摸操作一样通过语音来使用他们的设备,这就是为什么不需要专门针对VoiceControl进行特定操作的原因:所有可能的操作都是可以通过触摸进行的操作 >.

The interest of this new feature is affording people to vocally use their devices as they do with touches, that's why there's no need of having specific actions dedicated to VoiceControl: all possible actions are those available with touches.

但是,您可以使用show actions for YourItemNumber来访问现有项目操作,以获取显示其操作的操作表.

However, you can reach the existing item actions saying show actions for YourItemNumber to get an action sheet showing its actions.

此外,由于Customize Commands-Create New Command...菜单也可以使用,因此可以创建与VoiceOver自定义操作相似的新语音命令:(目前尚无代码可访问)

Besides, you can create new vocal commands that could be similar to the VoiceOver custom actions thanks to the Customize Commands - Create New Command... menu where all the vocal commands are available as well: (nothing is currently code reachable)

如果自定义操作意味着新的语音命令,这就是要遵循的基本原理,但是如果您仅想为语音控制功能添加新的图形命令,则在iOS 13下目前无法实现.

If custom actions mean new vocal commands, that's the rationale to be followed but if you want to add new graphical command only for the Voice Control feature, that's currently not possible under iOS 13.

这篇关于iOS 13语音控制辅助功能-是否可以执行更多自定义操作(而不仅仅是链接到辅助功能标签)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆