【问题标题】:How can I get Cortana to use my new or updated Voice Command Definition files?如何让 Cortana 使用我的新的或更新的语音命令定义文件?
【发布时间】:2016-07-05 19:40:05
【问题描述】:

我使用以下代码将我的 VCD 文件(“语法”)安装到 Cortana:

Windows.ApplicationModel.Package.current.installedLocation.getFileAsync("VoiceCommandDefinitions.xml")
.then(Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinitionManager.installCommandDefinitionsFromStorageFileAsync)
.then(() => Debug.writeln("Successfully installed VCD file");

报告成功,但是当我将查询写入 Cortana 时,我对 VCD 文件所做的更改不会反映在 Cortana 中。

如何强制 Cortana 实际使用我更新的语法?

【问题讨论】:

    标签: javascript windows-10-universal cortana vcd


    【解决方案1】:

    Cortana 只会在 语音 交互结束时刷新其语法缓存。单击 Cortana 的麦克风按钮,然后立即关闭 Cortana 框。您应该会在几秒钟内看到您的语法变化。

    已安装的语法存储在%LOCALAPPDATA%\Packages\Microsoft.Windows.Cortana_cw5n1h2txyewy\LocalState\Grammars\VoiceCommands.Components.0409.cfg 下。实时(即缓存)语法存储在%LOCALAPPDATA%\Packages\Microsoft.Windows.Cortana_cw5n1h2txyewy\LocalState\Grammars\ReadOnlyGrammars\VoiceCommands.Components.0409.cfg 下。每次用户完成与 Cortana 的语音交互时,都会刷新此副本。

    (没有来源,抱歉。此信息基于我与微软 Cortana 开发人员的电子邮件交流。)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-24
      • 1970-01-01
      • 2017-04-18
      • 1970-01-01
      • 2019-04-26
      相关资源
      最近更新 更多