<rule>
<rule>
An SRGS+XML rule definition is contained within a <rule>
block.
Attributes
Name | Data type | Description |
---|---|---|
id | String | This attribute specifies the rulename for the rule. |
scope | String | Can be either “public” or “private”. |
Notes
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.
Child Tags
<example>, <item>, <one-of>, <ruleref>, <tag>, <token>
Parent Tags
Last updated