是否可以在 iOS 应用程序中使用语音命令拍照?

Is it possible to take picture using voice command in iOS app?

我创建了一个使用自定义控件拍照的示例应用程序。现在我想使用语音命令拍照(比如用户说 "capture photo")。 iOS 中是否有任何默认控件或选项,或者我们是否需要实现自己的控件或选项?有参考资料吗?

Are there any default controls or options in iOS or do we need to implement our own?

截至 iOS 8,没有 Apple 提供的语音转文本功能 API。您可以使用 SpeechKit,或实施使用 Google 语音 API.

的黑客攻击之一

Now I want to take a picture using a voice command (like if the user says "capture photo"). Are there any default controls or options in iOS...

iOS13 新功能 语音控制 可以帮助您实现目标。

激活此功能如下:

您可以在 Customize Commands 部分找到有用的信息,例如截屏 (也可以用相机拍照)

如果您需要在您的应用程序中读出专用名称,请使用 accessibilityUserInputLabels 属性 来定义它们。

现在 可以使用 iOS 应用中的语音控制功能拍照,但 仅自 iOS 13.