有没有办法通过URI为Cortana提供文本命令?

时间:2017-11-08 16:37:50

标签: uwp cortana

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

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

但是,有没有办法启动Cortana并给它一个字符串,我想说什么?例如,使用发送到URI的字符串变量启动Cortana,如“Call ContactName”或“今天的天气如何”。

我的用户会使用类似列表的内容来选择预定义的命令,因为可能是某些原因导致他们静音或麦克风停止工作。

1 个答案:

答案 0 :(得分:0)

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

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

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