<lexicon>

Location of a pronunciation lexicon document that contains mappings of words to substitute words, and mappings of words to phoneme sequences.

Syntax

<lexicon
    type = "CDATA"
    uri = "CDATA"
/>

Attributes

Attribute

Data Type

Required?

Default

Description

type

CDATA

no

NA

Media type of the pronunciation lexicon document.

uri

CDATA

yes

NA

URI of the pronunciation lexicon document.

Details

The SSML specification does not define a default lexicon format. Until such a format is defined, the format supported is a subset of a W3C XML Lexicon Working Draft specification (with media type application/x-lexicon).

The root element in a lexicon document is the <lexicon> element. This can include an alphabet attribute, which specifies the alphabet used in phonetic sequences contained in the document, if any. The SSML <phoneme> element defines the valid values for the <lexicon> element. If the alphabet is unspecified or unrecognized, the SSML Processor uses the International Phonetic Alphabet (IPA).

The lexicon document can contain zero or more <lexeme> elements. Each <lexeme> element contains child text that specifies the target word or phrase to be substituted, and either a <sounds-like> element or a <phoneme> element:

Parents

<grammar>

Children

None.

Example

<?xml version="1.0"?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml">
    <form>
    <block>
            <prompt>
                <lexicon uri="DublinAsLondon.lexicon" type="application/x-lexicon"/>
            </prompt>
        </block>
    </form>
</vxml>

See Also

<phoneme>, <sub>