<token>

The <token> element defines words or other entities that may be spoken.

Attributes

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

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


Example

<?xml version="1.0"?>
<vxml version="2.0">
  <form>
    <field name="id">
      <grammar type="application/srgs+xml" root="ROOT" mode="voice">
        <rule id="ROOT">
          <one-of>
            <item>
              <token>Chili</token>
              Dog
            </item>
            <item>
              Cat
            </item>
          </one-of>
        </rule>
      </grammar>

      <prompt>
        Say either chili dog or cat.
      </prompt>

      <filled>
        You said <value expr="id"/>.
      </filled>
    </field>
  </form>
</vxml>

The output of the above script would be:

Computer: Say either chili dog or cat.
Human: Chili dog.
Computer: You said chili dog.



Child Tags

None



Parent Tags

<item>, <rule>