Apple是否为SIRI提供API?

编程入门 行业动态 更新时间:2024-10-24 12:23:07
本文介绍了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 =developer.apple/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?

本文发布于:2023-11-25 12:10:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1629692.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Apple   SIRI   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!