【发布时间】:2016-06-29 08:24:08
【问题描述】:
我想用 UWP 应用实现 Cortana,但我一直在寻找一种解决方案,以便在命令前缀之后询问随机内容。
我知道我可以动态生成 PhraseList,但这不是重点。这是我的实际 VCD 文件:
<?xml version="1.0" encoding="utf-8" ?>
<VoiceCommands xmlns="http://schemas.microsoft.com/voicecommands/1.2">
<CommandSet xml:lang="fr" Name="MyAppCommand_fr">
<CommandPrefix>MyApp</CommandPrefix>
<Command Name="showContent">
<ListenFor RequireAppName="BeforePhrase">{randomcontent}</ListenFor>
<Feedback>Searching for {randomcontent}</Feedback>
<Navigate />
</Command>
<!-- What I want here, is to get rid of PhraseList -->
<PhraseList Label="randomcontent">
<Item>Random Content</Item>
</PhraseList>
</CommandSet>
</VoiceCommands>
有什么办法可以做到吗?
谢谢
【问题讨论】: