通过macOS中的命令行与Siri进行交互 [英] Interacting with Siri via the command line in macOS

查看:103
本文介绍了通过macOS中的命令行与Siri进行交互的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在手机上使用Siri并看着随时随地创建提醒.当我在办公室时,我不想使用Siri干扰安静,因此我通常使用与Reminders应用程序集成的Alfred工作流程,或者直接使用Reminders应用程序.

I use Siri on my phone and watch to create reminders on the go. When I'm in the office I don't want to disturb the quiet by using Siri, so I usually use an Alfred workflow that is integrated with the Reminders app, or use the Reminders app directly.

但是,两者都有一个笨拙的界面,如果我只可以在命令行中键入,就会容易得多:

However, both have a rather clunky interface, and it would be much easier if I could just type at the command line:

$ siri "remind me to check stack overflow for responses to my question in 15 minutes"

macOS Sierra已将Siri引入台式机,但是到目前为止,除了大声说话之外,我一直无法找到与Siri进行交互的方法,而且Spotlight与Siri不匹配具有自然语言理解能力.

macOS Sierra has introduced Siri to the desktop, but so far I have been unable to find a way to interact with Siri in any way other than literally talking out loud, and Spotlight does not match Siri with natural language comprehension.

Apple宣布了Siri SDK,但似乎主要与向Siri添加功能 有关,而不是与公开Siri API有关.

Apple has announced the Siri SDK, but it seems primarily related to adding functionality to Siri, not for exposing the Siri API.

Apple是否在macOS上向Siri公开了任何一种API,以便可以通过命令行,系统调用或其他可执行文件发出Siri请求?

Does Apple expose any kind of API to Siri on macOS such that one could make Siri requests via the command line, system call, or other executable?

注意:据我所知,这个问题可以在Ask Different,Super User或Unix& amp;上找到更好的地方. Linux.最后,我认为与API或SDK进行一些编程集成是最可能的解决方案,因此Stack Overflow似乎是最合适的发布位置.如果mod意见不同,请迁移到最合适的社区.

推荐答案

这不是命令行上的内容,但是更近...我尚未对其进行测试,但是在High Sierra中,有一种方法可以使用辅助功能设置来启用您可以使用键盘来询问Siri问题.

This isnt from the command line, but closer... and I haven't tested it, but in High Sierra there's a way to use Accessibility settings to enable you to use your keyboard to ask Siri questions.

  • 系统偏好设置>辅助功能> Siri.
  • 单击Enable Type to Siri旁边的框,以显示一个勾号.
  • 现在,当您触发Siri时,将出现一个键盘,您可以在其中键入查询.
  • System Preferences > Accessibility > Siri.
  • Click in the box beside Enable Type to Siri so that a tick appears.
  • Now when you trigger Siri, a keyboard will appear into which you can type your query.

从此处标记: https://www.macworld.co.uk/news/mac-software/how-use-siri-on-mac-3536158/

这篇关于通过macOS中的命令行与Siri进行交互的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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