Last reviewed: 3/23/2024 8:32:24 AM

<OPT>

An <OPT> element represents one or more words that may or may not be spoken when matching for the rule.

<GRAMMAR LANGID="409">
    <RULE NAME="burgers" TOPLEVEL="ACTIVE">
        <OPT PROPNAME="upsize">DOUBLE</OPT>
         <LIST PROPNAME="burgers">
            <PHRASE>HAMBURGER</PHRASE>
            <PHRASE>CHEESEBURGER</PHRASE>
        </LIST>
    </RULE>
</GRAMMAR>

Attributes

DISP

Specifies the display form for the given phrase tag. Spoken words can have alternative text used for display. For example, the display form of the word two may be 2. This attribute is optional.

MAX

The maximum number of times valid recognitions of this element's contents may be recognized repeatedly. A value INF indicates that any number of recognitions may occur. The valid range of values for this is 1 to 255, or INF for infinite. The default value is 1. This attribute is optional.

MIN

The minimum number of times valid recognitions of this element's contents may be recognized repeatedly. The valid range of values for this is 0 to 255 and must be less than the value specified in MAX. If the MIN value is greater than the MAX value, the MAX is used. The default value is 1. This attribute is optional. This attribute is optional.

PRON

Phonemes that represent the phrase pronunciation. This attribute is optional.

PROPID

NAME attribute of an <ID> element. The <ID> element VAL attribute is returned when recognitions occur. This attribute is optional.

PROPNAME

String identifier to indicate that a VAL or VALSTR value is returned when recognitions occur. This attribute is optional.

VAL

A numeric value to return as a property value associated with the recognize phrase. This attribute is optional.

VALSTR

A string value to return as a property value associated with the recognize phrase. This attribute is optional.

WEIGHT

Float value (e.g., .15) that specifies the probability that this phrase versus another phrase in the list is recognized. The combined weights of the phrases in the list should be equal to 1. This attribute is optional.

Children

<DICTATION>, <LIST>, <PHRASE>, <RULEREF>, <TEXTBUFFER>, and <WILDCARD>.

Parents

<OPT>, <PHRASE> and <RULE>.