one-of Element

  Microsoft Speech Technologies Homepage

Specifies a set of alternative phrases that can possibly be matched by a user. Each alternative word or phrase is contained within an item element.

<one-of
    xml:lang = (en | en-US) >
</one-of>

Attributes

  • xml:lang
    Optional. Specifies the language identifier, and optionally a country/region or other variation, for the content of the one-of element on which it appears. The accepted language identifiers include:
    • en: English
    • en-US: U.S. English

Example

<grammar root="PhoneRule" version="1.0" xmlns="http://www.w3.org/2001/06/grammar"
 xml:lang="en-US" tag-format="semantics-ms/1.0">
   <rule id="PhoneRule" scope="public">
       <item>
           <one-of>
               <item>call</item> 
               <item>phone</item> 
           </one-of>
           <item repeat="1.0">
               <one-of>
                   <item>him</item> 
                   <item>her</item> 
                   <item>them</item> 
               </one-of>
           </item>
       </item>
   </rule>
</grammar>

See Also

Grammar XML | item Element | rule Element | xml:lang Attribute