example Element

  Microsoft Speech Technologies Homepage

Specifies sample phrases that a user can say to match the containing rule. This element is illustrative and for the benefit of a developer reading the grammar; the speech recognition engine ignores it.

<example>...</example>

Attributes

  • None

Example

<!-- Language ID = United States English -->
<grammar version="1.0" xmlns="http://www.w3.org/2001/06/grammar"
 xml:lang="en-US" tag-format="semantics-ms/1.0">
<rule id="BlueGreen" scope="public">
      <example> blue </example>
      <example> indigo </example>
      <example> green </example>
      <example> aqua </example>
      <one-of>
          <item> <ruleref uri="#Blue"/> </ITEM>
          <item> <ruleref uri="#Green"/> </ITEM>
      </one-of>
      <tag> $ = $$ </tag>
  </rule>
 </grammar>

See Also

Grammar XML | rule Element