Apple是否为SIRI提供API? [英] Does Apple provide an API for SIRI?

查看:190
本文介绍了Apple是否为SIRI提供API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apple是否有可能或将为Siri提供API?如果我能喝着咖啡说,那就太好了。

Is it possible that Apple does or will provide an API for Siri? It would be great if I can be sipping my coffee and say,


用户:嘿Siri,你能来吗?请打开愤怒的
鸟类; 4级并为我抛出第一只鸟。确保你至少打了一头绿猪或者它已经从你的薪水中拿出来了。

User: Hey Siri, could you please open Angry Birds; Level 4 and throw a first bird for me. Make sure you at least hit one green pig or it's coming out of your paycheck.

Siri:是的,我会为你做的。

Siri: Yes sure, I will do that for you.

这可能吗?你认为Apple会向我们提供这个吗?

Is this possible? And would you think Apple will provide this to us?

推荐答案

在iOS 10中,Apple宣布推出一款名为Sir的API href =https://developer.apple.com/sirikit/ =nofollow noreferrer> SiriKit 。但是,您只能将其作为应用扩展程序,并且仅当您的应用实施以下类型的服务之一时:

In iOS 10, Apple has announced an API for Siri called SiriKit. However, you can only do it as an app extension and only if your app implements one of the following types of services:


  • 音频或视频致电

  • 消息

  • 付款

  • 搜索照片

  • 锻炼

  • 乘车预订

  • 气候和电台

  • Audio or video calling
  • Messaging
  • Payments
  • Searching photos
  • Workouts
  • Ride booking
  • Climate and radio

SiriKit是一种通过Siri提供内容的方式。
它还允许您向地图应用添加对您的服务的支持。为
支持SiriKit,您使用Intents框架和Intents UI
框架来实现一个或多个扩展,然后在iOS应用程序中包含
。当用户通过Siri或地图请求特定类型的服务
时,系统会使用您的扩展程序提供这些
服务。

SiriKit is a way for you to make your content available through Siri. It also lets you add support for your services to the Maps app. To support SiriKit, you use the Intents framework and Intents UI framework to implement one or more extensions that you then include inside your iOS app. When the user requests specific types of services through Siri or Maps, the system uses your extensions to provide those services.

这意味着SiriKit不能用于问题中提到的场景以及我们许多人想要的方式。

This means SiriKit cannot be used for the scenario mentioned in the question and in ways that many of us would like.

来源: SiriKit的Apple文档

这篇关于Apple是否为SIRI提供API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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