How about using CDATA? Like this:<div><br></div><div><font face="'courier new', monospace" size="1"><action application="set"><!CDATA[args=<voice emotion="calm"><emphasis>This</font></div>
<div><font face="'courier new', monospace" size="1">is to test our text-to-speech system.</emphasis></voice>]]</action></font></div><div><font face="'courier new', monospace" size="1"><action application="speak" data="${args}"/></font></div>
<div><br></div><div>That's just off the top of my head so please tinker with it if it doesn't work on the first try.</div><div><br></div><div>-MC</div><div><br><div class="gmail_quote">On Thu, Dec 15, 2011 at 6:55 AM, x.liu <span dir="ltr"><<a href="mailto:x.liu@hw.ac.uk" target="_blank">x.liu@hw.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'd like to add SSML tag to my TTS string. I am sure my TTS server<br>
supports these tags.<br>
<br>
In this example,<br>
<br>
<action application="speak" data="<voice emotion="calm"><emphasis>This<br>
is to test our text-to-speech system. </emphasis></voice>"/><br>
<br>
Whether I use <voice emotion="calm"> or <voice emotion=\"calm\"><br>
FS complains: unexpected closing tag </voice><br>
<br>
If I use single quote like <voice emotion='calm'>, FS starts ok but TTS<br>
will read out the string of<br>
<voice emotion='calm'><br>
<br>
And I notice that this string is still read out even if it is passed as<br>
double quoted ( <voice emotion="calm"> ) through my ESL app.<br>
<br>
Any advices for using SSML in unimrcp TTS string?<br>
<br>
Many thanks!<br>
<br>
Xing<br>
<br>
<br>
<br>
--<br>
Heriot-Watt University is a Scottish charity<br>
registered under charity number SC000278.<br>
<br>
Heriot-Watt University is the Sunday Times<br>
Scottish University of the Year 2011-2012<br>
<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>