<lexicon>

Specifies a pronunciation lexicon for the prompt. This tag is not supported.

Attributes

uri This attribute is not supported.
type This attribute is not supported.

Notes

None


Example

lexicon.vxml
<?xml version="1.0"?>
<vxml version="2.0">

  <form>
    <field name="userchoice">
      <grammar type="application/srgs+xml" root="ROOT" mode="voice">
        <lexicon uri="http://path/to/the/lexicon.xml"/>
        <rule id="ROOT">
          <one-of>
            <item>tomato</item>
            <item>George</item>
            <item>record</item>
          </one-of>
        </rule>
      </grammar>
      <prompt>
        Say either tomato or George or record.
      </prompt>
      <filled>
        <prompt>
          You said <value expr="userchoice"/>.
        </prompt>
      </filled>
    </field>
  </form>
</vxml>
lexicon.xml
<?xml version="1.0" encoding="UTF-8" ?>
<lexicon xml:lang="en-US"
   alphabet="application/sampa;localization=swi">
  <entry key="tomato">
    <definition value="t@meIt@U" />
    <definition value="tOmato" xml:lang="fr-fr" />
    <definition value="t@mQt@U" />
  </entry>
  <entry key="George">
    <definition value="dZO:rdZ" />
    <definition value="ZORZ" xml:lang="fr-fr" />
  </entry>
  <entry key="record">
    <definition value="rek@rd" part="noun" />
    <definition value="rIkO:rd" part="verb" />
  </entry>
</lexicon>

The output of the above script would be:

Computer: Say either tomato or George or record.
Human: Tomato.
Computer: You said tomato.



Child Tags

None



Parent Tags

<grammar>, <prompt>