Plum DEV Documentation


A <one-of> block specifies a set of alternative legal rule expansions each of which is contained within an <item> block.


xml:lang (defaults to “xml:lang” global property or the “xml:lang” attribute of the <grammar> tag) The language identifier as defined in RFC3066.


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. Goodbye.

Child Tags

Parent Tags