【问题标题】:Is there a way to give Cortana a text command through the URI?有没有办法通过 URI 给 Cortana 一个文本命令?
【发布时间】:2017-11-08 16:37:49
【问题描述】:

所以我引用了这个问题here。基本上,现在我正在使用 URI 在 UWP Unity 应用程序中以侦听模式启动 Cortana。像这样的:

ms-cortana://Reactive/?StartMode=Reactive&ListeningMode=True

但是,有没有办法启动 Cortana 并给它一个包含我想说的话的字符串?例如,使用发送到 URI 的字符串变量启动 Cortana,例如“Call ContactName”或“What's the weather like today”。

我的用户会使用列表之类的东西来选择预定义的命令,因为可能出于某种原因他们静音或他们的麦克风停止工作。

【问题讨论】:

标签: uwp cortana


【解决方案1】:

如果要添加一些搜索内容,可以使用以下格式:

ms-cortana://search/?q={0}

例如:ms-cortana://search/?q=What's the weather like today

【讨论】:

  • 这部分回答了我的问题。我可以通过 Cortana 使用 URI 来访问 Skype 或向某人发送消息吗?我知道有一个 Skype uri,但它不适用于此目的。它必须通过 Cortana。
  • 我的意思是现在 URI 所做的基本上就是搜索互联网。
猜你喜欢
  • 2018-05-13
  • 1970-01-01
  • 1970-01-01
  • 2020-10-16
  • 2021-08-30
  • 1970-01-01
  • 1970-01-01
  • 2012-09-13
  • 1970-01-01
相关资源
最近更新 更多