<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Thanks, Michael!<br>
    <br>
    Your suggestion works.(there is a typo: !CDATA should be ![CDATA )<br>
    <br>
    And following two ways also work:<br>
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="export"&gt;&lt;![CDATA[args=&lt;voice
    emotion="calm"&gt;&lt;emphasis&gt;This is to test our text-to-speech
    system.&lt;/emphasis&gt;&lt;/voice&gt;]]&gt;&lt;/action &gt;<br>
    <br>
    this one uses single quote for data= and escape double quote:<br>
    &lt;action application="speak" data='&lt;voice
    emotion=\\"calm\\"&gt;&lt;emphasis&gt;This<br>
    is to test our text-to-speech system.
    &lt;/emphasis&gt;&lt;/voice&gt;'/&gt;<br>
    <br>
    <br>
    But it looks like the apostrophe would be removed by FS, e.g.<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="speak" data="if I'm wrong, how about
    Miro's Cantina Mexicana?"/ &gt;<br>
    <br>
    From the FS terminal and log I see<br>
    &nbsp;&nbsp;&nbsp; if Im wrong, how about Miros Cantina Mexicana?<br>
    <br>
    Don't know yet how to keep the apostrophe.<br>
    <br>
    <br>
    <br>
    On 12/15/2011 04:33 PM, Michael Collins wrote:
    <blockquote
cite="mid:CAKzWOxUfe849NLcw4gQEZ_PAwhqnOo1ZfbL0Uawj3YUCT167sA@mail.gmail.com"
      type="cite">How about using CDATA? Like this:
      <div><br>
      </div>
      <div><font face="'courier new', monospace" size="1">&lt;action
          application="set"&gt;&lt;!CDATA[args=&lt;voice
          emotion="calm"&gt;&lt;emphasis&gt;This</font></div>
      <div><font face="'courier new', monospace" size="1">is to test our
          text-to-speech
          system.&lt;/emphasis&gt;&lt;/voice&gt;]]&lt;/action&gt;</font></div>
      <div><font face="'courier new', monospace" size="1">&lt;action
          application="speak" data="${args}"/&gt;</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">&lt;<a moz-do-not-send="true"
              href="mailto:x.liu@hw.ac.uk" target="_blank">x.liu@hw.ac.uk</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            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>
            &lt;action application="speak" data="&lt;voice
            emotion="calm"&gt;&lt;emphasis&gt;This<br>
            is to test our text-to-speech system.
            &lt;/emphasis&gt;&lt;/voice&gt;"/&gt;<br>
            <br>
            Whether I use &lt;voice emotion="calm"&gt; or &lt;voice
            emotion=\"calm\"&gt;<br>
            FS complains: &nbsp;unexpected closing tag &lt;/voice&gt;<br>
            <br>
            If I use single quote like &lt;voice emotion='calm'&gt;, FS
            starts ok but TTS<br>
            will read out the string of<br>
            &lt;voice emotion='calm'&gt;<br>
            <br>
            And I notice that this string is still read out even if it
            is passed as<br>
            double quoted ( &lt;voice emotion="calm"&gt; ) 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 moz-do-not-send="true"
              href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
            <br>
            FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
            <a moz-do-not-send="true" href="http://www.cudatel.com"
              target="_blank">http://www.cudatel.com</a><br>
            <br>
            Official FreeSWITCH Sites<br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://wiki.freeswitch.org"
              target="_blank">http://wiki.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://www.cluecon.com"
              target="_blank">http://www.cluecon.com</a><br>
            <br>
            FreeSWITCH-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:FreeSWITCH-users@lists.freeswitch.org"
              target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
            UNSUBSCRIBE:<a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  <br>
<hr>
<br>
<font face="arial, helvetica">
<b>Heriot-Watt University is the Sunday Times Scottish University of the Year 2011-2012.</b>
</font>
<br><br>
<font face="arial,helvetica" size="-1">
Heriot-Watt University is a Scottish charity registered under charity number SC000278.
<br>
</font>

</body>
</html>