# \<token>

## \<token> <a href="#token" id="token"></a>

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

### Attributes

<table><thead><tr><th width="174.33333333333331">Name</th><th width="176">Data type<select><option value="f9638f297c4348c9b82b2eb2f76b71c5" label="String" color="blue"></option><option value="c6847822421d44a7bf0356b5473d73e5" label="Integer" color="blue"></option><option value="a3522d43b7ff430f8c4d83ce01533b61" label="Boolean" color="blue"></option></select></th><th>Description</th></tr></thead><tbody><tr><td>xml:lang</td><td><span data-option="f9638f297c4348c9b82b2eb2f76b71c5">String</span></td><td>(defaults to “xml:lang” global property or the “xml:lang” attribute of the &#x3C;grammar> tag) The language identifier as defined in <a href="http://www.ietf.org/rfc/rfc3066.txt">RFC3066</a>.</td></tr></tbody></table>

### Notes

For examples and usage information, please refer to the [Speech Recognition Grammar Specification](http://www.w3.org/TR/2002/CR-speech-grammar-20020626/).

### Example

```markup
<?xml version="1.0"?>
<vxml version="2.0">
  <form>
    <field name="pet">
      <grammar type="application/srgs+xml" root="ROOT" mode="voice">
        <rule id="ROOT">
          <token>nice</token>
          <one-of>
            <item>dog</item>
            <item>cat</item>
          </one-of>
        </rule>
      </grammar>
      <prompt>
        Say either dog or cat.
      </prompt>
      <filled>
        You chose a <value expr="pet"/>.
      </filled>
    </field>
  </form>
</vxml>
```

The output of the above script would be:

> Computer: Say either dog or cat.\
> Human: cat.\
> Computer: You chose a nice cat.

### Child Tags

None

### Parent Tags

[\<item>](https://docs.plumvoice.com/dev/voicexml/tags/item-tag), [\<rule>](https://docs.plumvoice.com/dev/voicexml/tags/rule-tag)
