2016-06-29 2 views
4

UWP 앱으로 Cortana를 구현하고 싶습니다. 명령 접두어 이후에 임의의 콘텐츠를 묻는 해결책을 찾지 못했습니다.PhraseList가없는 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="randomcontent" Scenario="Dictation"> </PhraseTopic>

앤드류 필리 주셔서 감사합니다이 게시물에 그의 대답과 함께 PhraseList 교체 :

감사

답변

2

을 당신은 또한 사용할 수 있습니다

<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"/>