Thanks, Michael!

Your suggestion works.(there is a typo: !CDATA should be ![CDATA )

And following two ways also work:

       <action application="export"><![CDATA[args=<voice emotion="calm"><emphasis>This is to test our text-to-speech system.</emphasis></voice>]]></action >

this one uses single quote for data= and escape double quote:
<action application="speak" data='<voice emotion=\\"calm\\"><emphasis>This
is to test our text-to-speech system. </emphasis></voice>'/>


But it looks like the apostrophe would be removed by FS, e.g.
      <action application="speak" data="if I'm wrong, how about Miro's Cantina Mexicana?"/ >

From the FS terminal and log I see
    if Im wrong, how about Miros Cantina Mexicana?

Don't know yet how to keep the apostrophe.



On 12/15/2011 04:33 PM, Michael Collins wrote:
How about using CDATA? Like this:

<action application="set"><!CDATA[args=<voice emotion="calm"><emphasis>This
is to test our text-to-speech system.</emphasis></voice>]]</action>
<action application="speak" data="${args}"/>

That's just off the top of my head so please tinker with it if it doesn't work on the first try.

-MC

On Thu, Dec 15, 2011 at 6:55 AM, x.liu <x.liu@hw.ac.uk> wrote:
Hi,

I'd like to add SSML tag to my TTS string. I am sure my TTS server
supports these tags.

In this example,

<action application="speak" data="<voice emotion="calm"><emphasis>This
is to test our text-to-speech system. </emphasis></voice>"/>

Whether I use <voice emotion="calm"> or <voice emotion=\"calm\">
FS complains:  unexpected closing tag </voice>

If I use single quote like <voice emotion='calm'>, FS starts ok but TTS
will read out the string of
<voice emotion='calm'>

And I notice that this string is still read out even if it is passed as
double quoted ( <voice emotion="calm"> ) through my ESL app.

Any advices for using SSML in unimrcp TTS string?

Many thanks!

Xing



--
Heriot-Watt University is a Scottish charity
registered under charity number SC000278.

Heriot-Watt University is the Sunday Times
Scottish University of the Year 2011-2012



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org




Heriot-Watt University is the Sunday Times Scottish University of the Year 2011-2012.

Heriot-Watt University is a Scottish charity registered under charity number SC000278.