Location of a pronunciation lexicon document that contains mappings of words to substitute words, and mappings of words to phoneme sequences.
<lexicon
type = "CDATA"
uri = "CDATA"
/>
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. |
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:
The <sounds-like> element uses child text to specify the substitute word or phrase with which the target word or phrase is to be replaced. This is equivalent to the SSML <sub> element.
The <phoneme> element uses the ph attribute to specify a sequence of phonemes with which the target word or phrase is to be replaced.
None.
<?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>