Understanding the Structure of the VCD File

The structure of the VCD file has a root VoiceCommands element that contains zero or more CommandSet elements. See Listing 23.14.

The CommandSet element represents a group of commands that are activated when the value of the CommandPrefix element is spoken by the user. This allows you to group multiple phrases together.

The Example element determines the text that is displayed on the speech recognition dialog, which is displayed when the user taps and holds the phone’s Windows button.

Each CommandSet is required to have at least one Command element, and each Command element is required to have at least one and a maximum of 10 ListenFor elements. ListenFor elements define the speech that activates a ...

Get Windows® Phone 8 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.