Skip to content

Instantly share code, notes, and snippets.

@seksenov
Created February 27, 2016 00:13
Show Gist options
  • Save seksenov/e24bd984c41441f63cdb to your computer and use it in GitHub Desktop.
Save seksenov/e24bd984c41441f63cdb to your computer and use it in GitHub Desktop.
Platform and invoked when a user utters them to Cortana. Here’s the VCD file used in the sample:
<?xml version="1.0" encoding="utf-8"?>
<VoiceCommands xmlns="http://schemas.microsoft.com/voicecommands/1.2">
<CommandSet xml:lang="en-us" Name="MediaSample">
<CommandPrefix>Contoso Video</CommandPrefix>
<Example>Contoso video play elephants</Example>
<Command Name="play">
<Example>play {message} using media sample</Example>
<ListenFor RequireAppName="BeforeOrAfterPhrase">please play {streamSubject}</ListenFor>
<Feedback>playing {streamSubject} with Stream Demo</Feedback>
<Navigate Target="/playStream.htm"/>
</Command>
<PhraseTopic Label="streamSubject" Scenario="Dictation"></PhraseTopic>
</CommandSet>
</VoiceCommands>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment