[Freeswitch-users] How to escape double-quote in dialplan and use TTS SSML tags

Michael Collins msc at freeswitch.org
Thu Dec 15 19:33:31 MSK 2011


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 at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111215/cafe4912/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list