gpt4 book ai didi

c# - 没有短语列表的 UWP Cortana

转载 作者:太空狗 更新时间:2023-10-30 01:32:09 27 4
gpt4 key购买 nike

我想用 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>

有什么办法可以做到吗?

谢谢

最佳答案

您还可以使用:

 <PhraseTopic Label="searchParam" Scenario="Search"/>

所以你会:

<Command Name="showContent">    
<ListenFor RequireAppName="BeforePhrase">{randomcontent}</ListenFor>
<Feedback>Searching for {randomcontent}</Feedback>
<Navigate />
</Command>

<PhraseList Label="randomcontent" Scenario="Search"/>

关于c# - 没有短语列表的 UWP Cortana,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38094124/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com