How do I alter the pronunciaton of a word as spoken by the TTS engine using a User Dictionary?

  • 13
    Oct

    The SSML lexicon tag allows you to reference a user dictionary in your application. Included below is a sample app the shows how this can be done.

    The “TestLexiconTag.vxml”application just plays a prompt with the word Verizon in it. Verizon is one of the words being pronounced incorrectly by the RealSpeak TTS. Before we play the prompt we define a user dictionary (SampleDic.tdc) through the SSML lexicon tag, which has the correct pronunciation for the word Verizon. When the word Verizon is played it picks up the correct pronunciation from the defined user dictionary.

     

    TestLexiconTag.vxml

     

    <?xml version=”1.0″?>

    <vxml version=”2.0″ xmlns=”http://www.w3.org/2001/vxml” application=”AppRoot.vxml”>

    <form id=”greeting”>

    <block>

    <prompt bargein=”false”>

    <lexicon uri=”The_Complete_HTTP_Path/SampleDic.tdc” />

    I am trying to say Verizon.

    </prompt>

    </block>

    </form>

    </vxml>

     

    SampleDic.tdc

     

    [Header]

     

    [SubHeader]

    Language=ENU

    Content=EDCT_CONTENT_BROAD_NARROWS

    Representation=EDCT_REPR_SZZ_STRING

     

    [Data]

    Verizon            //         ‘vE0R=a&Iz$n

     

    [SubHeader]

    Language=ENU

    Content=EDCT_CONTENT_ORTHOGRAPHIC

    Representation=EDCT_REPR_WSZ_STRING

     

    [Data]