<example>

Defines an example phrase within XML grammar constructs.

Syntax

<example/>

Attributes

None.

Details

The <example> element is part of the Speech Recognition Grammar Specification (SRGS). Use the example phrase to create a successful recognition result for the grammar in question.

Parents

<rule>

Children

None.

Example

<?xml version= "1.0"?> 
<grammar xmlns="http://www.w3.org/2001/06/grammar" 
    xml:lang="en-GB" root="rule1"> 
    <rule id="rule1" scope="public"> 
      <example> irish </example> 
      <example> or, english </example>
      <one-of> 
          <item> irish 
              <tag><fieldone "irish"></tag> 
          </item> 
          <item> english
              <tag><fieldone "english"></tag> 
          </item> 
      </one-of> 
    </rule> 
</grammar>