<!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 bgcolor="#ffffff" text="#000000">
Hi Josip,<br>
<br>
Yep, that's right, but (a) I'm using Perl, not C, and (b) the strings
being sent over<br>
the socket to FreeSWITCH are correct.<br>
<br>
If I send &lt;prosody rate='fast'&gt; hello &lt;/prosody&gt; down the
socket, Cepstral gets<br>
given &lt;prosody rate=fast&gt; hello &lt;/prosody&gt; to speak, and
gets confused.&nbsp; If I <br>
send &lt;prosody rate="fast"&gt; hello &lt;/prosody&gt;, then it gets
what I sent and works<br>
fine.<br>
<br>
switch_separate_string (in src/switch_utils.c) is the culprit - it
strips out 's.&nbsp; It's<br>
called from 202 places, according to a quick grep, so I'm kind of loath
just to <br>
change its behaviour to do what I want...<br>
<br>
--Dave<br>
<blockquote
 cite="mid:64370.89.18.32.10.1199051434.squirrel@webmail.primatel.hr"
 type="cite">
  <pre wrap="">Hi,

maybe I'm mistaking, so if I am correct me, but ain't the " special
character in C? (in printf, etc)

That's why you have to put \ before it so that the compiler knows it's a
acctually a char you wan't to be outputed.

J.

  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi -

Been doing some TTS.  mod_cepstral adds a 1 second pause before and
after each
utterance:

if ((to_say = switch_mprintf("&lt;break time=\"1000ms\"/&gt; %s &lt;break
time=\"1000ms\"/&gt;", text)))

which I'd suggest ought to go - if I want to add pauses, I can do so
myself, and 2 seconds
between successive utterances is a lot.

There's another bit of weirdness which I've not yet tracked down - I'm
talking to FS
over a socket, and something seems to be stripping 's out - e.g.
"speak", "cepstral|$voice|&lt;prosody rate=\"fast\"&gt; hello &lt;/prosody&gt;"
does what's expected, but
"speak", "cepstral|$voice|&lt;prosody rate='fast'&gt; hello &lt;/prosody&gt;"
loses the 's somewhere down the line, and Cepstral gets a bit confused.

--Dave





_______________________________________________
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>
  <pre wrap=""><!---->

Srdacan pozdrav,

Josip Djuricic
CTO

PRIMATEL d.o.o.
Phone: +385 1 400 19 02
Mobile: +385 99 311 64 06
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:josip.djuricic@primatel.hr">josip.djuricic@primatel.hr</a>
www: <a class="moz-txt-link-freetext" href="http://www.primatel.hr">http://www.primatel.hr</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>
<pre class="moz-signature" cols="72">-- 
David Knell, Director, 3C Limited
T: 020 8114 8901  F: 020 8692 0677  M: 07773 800623
<a class="moz-txt-link-freetext" href="http://www.3c.co.uk">http://www.3c.co.uk</a> </pre>
</body>
</html>