Plum DEV Documentation
voicexml:tags:lexicon

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

voicexml:tags:lexicon [2019/02/21 07:40]
admin
voicexml:tags:lexicon [2019/09/17 12:29]
Line 1: Line 1:
-{{description>​‹lexicon› VoiceXML tag details, attributes and VXML code example | The lexicon element specifies a pronunciation lexicon for a prompt.}} 
-======<​lexicon>​====== 
- 
-Specifies a pronunciation lexicon for the prompt. This tag is only supported with the RealSpeak TTS engine. 
-====Attributes==== 
-|uri  |The URI specifying the location of the dictionary file.| 
-|type |not supported | 
- 
-====Notes==== 
- 
-The dictionary file must always contain a SubHeader section that defines what 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: [[developer_reference:​tts|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** 
-<​code>​ 
-<?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>​ 
-</​code>​ 
- 
-**lexicon.dct** 
-<​code>​ 
-[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 
-</​code>​ 
- 
-Computer: The doctor diagnosed the patient with muscae volitantes. 
- 
- 
-====Child Tags==== 
- 
-None 
- 
- 
-====Parent Tags==== 
- 
-[[voicexml:​tags:​grammar|<​grammar>​]],​ [[voicexml:​tags:​prompt|<​prompt>​]] 
-