Siri
Your app can integrate with Siri so that the user can perform certain tasks in response to spoken commands and questions. Siri handles the language processing and semantic analysis to turn spoken requests into instructions your app can handle. Your app defines the tasks it supports, validates information received, provides information for Siri to present, and takes action. Information from your app’s response is spoken by Siri and appears in the Siri interface. If appropriate, your app can provide a custom user interface for Siri to display. A fitness app, for example, might provide custom workout information.
你的app可以集成Siri,这样用户可以执行特定任务来响应口头命令和问题。Sir惊醒语言处理和语义分析来口头请求指导你的app来处理。你的app定义它支持的任务,验证收到的信息,提供给Siri显示信息,然后行动。来自你的app的回应信息会由Siri说出和显示在Siri的界面上。如果合适,你的app可以为Siri提供一个定制用户界面来显示。一个健康app,例如,允许提供一个定制锻炼信息。
The following types of iOS apps can integrate with Siri.
Strive for a voice-driven experience that doesn’t require touching or looking at the screen.People often interact with Siri through a headset, through their car, or from across the room. To the extent possible, let users complete tasks without unlocking their phone.
争取一个声音驱动的体验,不需要触摸或者盯着屏幕。用户经常通过一个耳机,他们的汽车,或者穿过房间与Siri交互。为了可能的需求,允许用户不需要解锁就完成任务。
Respond quickly and minimize interaction.People use Siri for convenience and expect a fast response. Present efficient, focused choices that reduce the possibility of additional prompting.
快速响应,减少交互。用户使用Siri为了方便和期望快速响应。表现得有效率,关注减少额外提示的可能性的选项。
Take people directly to content.Transitions from Siri to your app should go directly to the expected destination. Don’t show intermediary screens or messages that slow down the experience.
直接带用户到内容。从Siri转场到你的app应该直接到达期望的目的地。不要显示中间媒介屏幕或者信息,这样会降低体验。
Be relevant and accurate.Make your app’s response relevant to the user’s current request and expectations. For example, if the user asks Siri to send a message with your app, send a message. Don't perform a different action.
相关和准确。确保你的app响应的是用户当前请求和期望的相关的内容。例如,如果用户请求Siri用你的app发送一条信息,那么发送一信息。不要执行一个不同的操作。
Be appropriate.Never include content that could be offensive or demeaning.
保持合适。永远不要包括攻击或者冒犯人的内容。
When a request has a financial impact, default to the safest and least expensive option.Never deceive the user or misrepresent information. For a purchase with multiple pricing levels, don’t default to the most expensive. At the point where a user is making a payment, don’t charge extra fees without informing them.
当一个请求有财务相关影响时,优先选择最安全和最小花费的选项。永远不要欺骗用户或者不显示信息。对于一个有多价格等级的购买,不要初始显示最贵的那个。在用户要支付时,不要在不通知他们的情况下产生额外的费用。
Make sure your custom interface integrates well with Siri.It’s fine to use your app’s colors, imagery, and other design elements to communicate your brand, but any custom interface elements should still feel like they belong in Siri.
确保你的定制界面与Siri集成合适。使用你的app颜色,意象,和其他设计元素来凸显品牌是合适的,但是任何定制的界面元素应该使用户感觉仍然在Siri中。
Don’t include your app name or icon in your custom interface.The system automatically shows this information.
不要包括你的app名字或者图标在你定制的页面。系统自动显示这些信息。
Increase accuracy with custom vocabulary.Help Siri learn more about the actions your app performs by defining specific terms people might actually use in requests, such as contact names, photo tags, photo album names, ride options, and workout names. These terms should be nongeneric and unique to your app. Never include other app names, terms that are obviously connected with other apps, inappropriate language, or reserved phrases, such as “Hey Siri.” Note that any terms you define are used by Siri to help resolve requests, but aren’t guaranteed to be recognized.
增强定制词汇的准确性。帮助Siri学习你的app,通过定义特定词条执行的更多操作,用户可能实际在请求中使用,例如通讯录名字,照片标签,照片相簿名称,驾驶选项和锻炼名称。这些词条应该是不寻常的和对你的app独特的。永远不要包括其他app名称,和其他app明显关联的词条,不合适的语言,或者保留词组,例如“Hey Siri.”记住你定义的词条会被Siri使用来处理请求,但是不能保证被识别。
Provide example requests.Provide Siri with example phrases to show in the guide that appears when you tap the Help button in the Siri interface. Use these phrases to teach people the easiest and most efficient way to use Siri with your app.
提供示例请求。提供例子词组显示在指导中,当你敲击Siri帮助按钮时显示。使用这些词组教会用户最简单和高效的方式用Siri使用你的app。
Don’t advertise.Your app’s Siri experience should never include advertisements, marketing, or in-app purchase sales pitches.
不要做广告。你的app的Siri体验应该永远不要包括广告,推广,或者app内置购买选项。
Don’t attempt to mimic or manipulate Siri.Your app should never impersonate Siri, attempt to reproduce the functionality Siri provides, or provide a response that appears to come from Apple.
不要模范或者操作Siri。你的app不应该模范Siri,尝试减少Siri提供的功能,或者回应来自Apple的请求。
For developer guidance, seeSiriKit Programming Guide.