Uwp 向Cortana注册多个语音命令定义文件

Uwp 向Cortana注册多个语音命令定义文件,uwp,cortana,vcd,Uwp,Cortana,Vcd,有没有办法向Cortana注册多个语音命令定义文件 UWP 我有一个响应自定义cortana命令的应用程序。由于我的应用程序将响应的命令数量很大,因此我想将它们拆分为多个VCD文件。我希望我的应用程序响应每个VCD文件中指定的不同CommandPrefix 示例VCD文件1: <CommandSet xml:lang="en-us" Name="CustomCommands"> <CommandPrefix>Custom</CommandPrefix>

有没有办法向Cortana注册多个语音命令定义文件 UWP

我有一个响应自定义cortana命令的应用程序。由于我的应用程序将响应的命令数量很大,因此我想将它们拆分为多个VCD文件。我希望我的应用程序响应每个VCD文件中指定的不同CommandPrefix

示例VCD文件1:

<CommandSet xml:lang="en-us" Name="CustomCommands">
    <CommandPrefix>Custom</CommandPrefix>
    <Example> Open Website </Example>

    <Command Name="CustomOpenWebsite">
    <Example> Open website </Example>          
    <ListenFor> Open website </ListenFor>
    <Feedback> Opening your website </Feedback>
    <Navigate/>          
    </Command>
</CommandSet>

然而,这似乎不起作用。只有一个VCD文件被注册,我只能使用其中一个的语音命令。

似乎我们无法设置两个VCD文件。我们应该能够把命令放在一个VCD文件中。似乎我们不能设置两个VCD文件。我们应该能够把命令放在一个VCD文件中。
<CommandSet xml:lang="en-us" Name="ReportCommands">
    <CommandPrefix>My report</CommandPrefix> 
    <Example> Open Report </Example>

    <Command Name="OpenReport">
      <Example>[Can] [you] Open [the] report [please]</Example>
      <ListenFor> Open report </ListenFor>
      <Feedback> Opening your report </Feedback>
      <Navigate/>
    </Command>
<CommandSet>
StorageFile vcdReport = await Package.Current.InstalledLocation.GetFileAsync(@"ReportCommandDefinitions.xml");
StorageFile vcdCustom = await Package.Current.InstalledLocation.GetFileAsync(@"CustomCommandDefinitions.xml");

await VoiceCommandDefinitionManager.InstallCommandDefinitionsFromStorageFileAsync(vcdCustom);
await VoiceCommandDefinitionManager.InstallCommandDefinitionsFromStorageFileAsync(vcdReport);