Skip to content

Instantly share code, notes, and snippets.

@vladimir-kotikov
Last active June 22, 2016 09:30
Show Gist options
  • Save vladimir-kotikov/b9d9252eec431f874823 to your computer and use it in GitHub Desktop.
Save vladimir-kotikov/b9d9252eec431f874823 to your computer and use it in GitHub Desktop.
Command definitions for Cortana
<?xml version="1.0" encoding="utf-8"?>
<VoiceCommands xmlns="http://schemas.microsoft.com/voicecommands/1.1">
<!-- http://msdn.microsoft.com/en-us/library/windows/apps/dn722331.aspx -->
<CommandSet xml:lang="en-us" Name="examplevcd">
<CommandPrefix>Application</CommandPrefix>
<Example>Show search</Example>
<Command Name="search">
<Example>Search web for Cortana</Example>
<ListenFor>[search] {searchoptions} [for] {searchtext}</ListenFor>
<Feedback>Searching {searchoptions} for {searchtext}</Feedback>
<Navigate/>
</Command>
<PhraseList Label="searchoptions">
<Item>web</Item>
<Item>application</Item>
</PhraseList>
<PhraseTopic Label="searchtext" Scenario="Short Message">
<Subject>Search query</Subject>
</PhraseTopic>
<Command Name="openSearch">
<Example>Show search</Example>
<ListenFor>[Show search]</ListenFor>
<Feedback>Show search panel</Feedback>
<Navigate Target='app.html' />
</Command>
</CommandSet>
</VoiceCommands>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment