Plum DEV Documentation


An SRGS+XML rule definition is contained within a <rule> block.


id This attribute specifies the rulename for the rule.
scope Can be either “public” or “private”.


For examples and usage information, please refer to the Speech Recognition Grammar Specification.


<?xml version="1.0"?>
<vxml version="2.0">
    <field name="animal">
      <grammar type="application/srgs+xml" root="ROOT" mode="voice">
        <rule id="ROOT">
        Say either dog or cat.
          You said <value expr="animal"/>. Goodbye.

The output of the above script would be:

Computer: Say either dog or cat.
Human: Dog.
Computer: You said dog.

Child Tags

Parent Tags