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!
-- 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