Cortana integration for multiple Phrase Topics

89 Views Asked by At

I'm creating a Javascript UWP for Windows 10. I have integrated Cortana, and everything works fine except one command, which needs two Phrase Topics.

Example: Get Directions from Source to Destination.

My VCD file is like this:

<Command Name="getDirections">
    <Example>MyApp get directions from New York to New Jersey</Example>
    <ListenFor>get directions from {source} to {destination}</ListenFor>
    <Feedback>Fetching directions from {source} to {destination}</Feedback>
    <VoiceCommandService Target="myBackgroundService"/>
</Command>

<PhraseTopic Label="source" Scenario="Natural Language">
      <Subject> Natural Language </Subject>
</PhraseTopic>

<PhraseTopic Label="destination" Scenario="Natural Language">
      <Subject> Natural Language </Subject>
</PhraseTopic>

But the problem is, If I create 2 Phrase topics inside my command set, then Cortana commands fails to install from VCD file (The function call to install voice commands from VCD fails).

Is there any way to use one phrase topic at two places in same listen command.

Please help me out :)

0

There are 0 best solutions below