<item>
<item>
Each alternative expansion of a <one-of>
block is contained in an <item>
element.
Attributes
repeat
The number of repetitions to expect of the item. Can be either a single number or a range.
repeat-prob
This attribute is not supported.
weight
This attribute is not supported.
xml:lang
(defaults to “xml:lang” global property or the “xml:lang” attribute of the <grammar> tag) The language identifier as defined in RFC3066.
Notes
The repeat-prob attribute will only work if a root rule has been specified for the grammar as a whole. For examples and usage information, please refer to the Speech Recognition Grammar Specification.
Example
The output of the above script would be:
Computer: Say either dog or cat. Human: Dog. Computer: You said dog. Goodbye.
Child Tags
<one-of>, <ruleref>, <tag>, <token>, <item>
Parent Tags
Last updated