<lexicon>

<lexicon>

Specifies a pronunciation lexicon for the prompt. This tag is only supported with the RealSpeak TTS engine.

Attributes

Name
Data type
Description

uri

String

The URI specifying the location of the dictionary file.

type

not supported

Notes

The dictionary file must always contain a SubHeader section that defines the contents of a Data section. These contents can either be expansions or pronunciations.

In the example below, the first SubHeader and Data blocks define expansions, while the second Subheader And Data blocks define pronunciations.

For pronunciations, you should follow the guidelines to the Phoneme Set for Nuance RealSpeak here: TTS Engine Characteristics. Please note that your web servers must be configured to associate the .dct extension with a mime-type of application/edct-text-dictionary.

Example

lexicon.vxml

<?xml version="1.0"?>
<vxml version="2.0">
    <form>
        <block>
            <prompt>
                <lexicon uri="http://path/to/the/lexicon.dct"/>
                The doc diagnosed the pt with muscae volitantes.
            </prompt>
        </block>
    </form>
</vxml>

lexicon.dct

[Header]
Language = ENU

[SubHeader]
Content=EDCT_CONTENT_ORTHOGRAPHIC
Representation=EDCT_REPR_WSZ_STRING

[Data]
doc     Doctor
pt      Patient

[SubHeader]
Content = EDCT_CONTENT_BROAD_NARROWS
Representation = EDCT_REPR_SZZ_STRING

[Data]
muscae  //'m^sk^
volitantes      //'vAl.^.t@nz

Computer: The doctor diagnosed the patient with muscae volitantes.

Child Tags

None

Parent Tags

<grammar>, <prompt>

Last updated