<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
I use an additional shell script that breaks up the text into
sentences, which hopefully have less than 100 characters. These
sentences are then processed by the perl script and concatenated into a
single wave file:<br>
<br>
<tt>#!/bin/sh<br>
<br>
OUTDIR=${1:-.}<br>
<br>
while read file text<br>
do<br>
&nbsp;&nbsp;&nbsp; echo $file<br>
&nbsp;&nbsp;&nbsp; (echo $text | sed -e 's/\. /.\n/g' | while read s<br>
&nbsp;&nbsp;&nbsp; do<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./getsound.pl - "$s" | sox -t wav - -t raw -r 8000 -sw -c 1 -<br>
&nbsp;&nbsp;&nbsp; done) | sox -t raw -r 8000 -sw -c 1 - $OUTDIR/$(basename $file
.gsm).wav<br>
done<br>
</tt><br>
This script expects stdin to be a list like:<br>
<br>
<tt>hello.gsm Hello there.<br>
thankyou.gsm Thank you.<br>
long.gsm This is a long piece of text. And another sentence.</tt><br>
<br>
So far, I have not had to process a sentence that is longer than 100
characters, but this would not be too hard to cater to. I have attached
the perl script for perusal.<br>
<br>
Jeffrey Bird<br>
<br>
Colin Anderson wrote:
<blockquote
 cite="mid03224271100A29458F0C144F1DB5304DAADF2B@assprelay.landmarkhomes.net"
 type="cite">
  <pre wrap="">Curious if the perl scropt overcomes the 100 char limitation?

-----Original Message-----
From: Rod Bacon [<a class="moz-txt-link-freetext" href="mailto:rod.bacon@empoweredcomms.com.au">mailto:rod.bacon@empoweredcomms.com.au</a>]
Sent: Tuesday, September 13, 2005 12:41 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion;
<a class="moz-txt-link-abbreviated" href="mailto:jeff@jbird.org">jeff@jbird.org</a>
Subject: Re: [Asterisk-Users] OT: Online TTS engines?


Can I get a copy of that PERL script?


==========================================
Rod Bacon
Empowered Communications
Ground Floor, 102 York St. South Melbourne
Victoria, Australia. 3205
Phone: +613 99401600    Fax: +613 99401650
FWD: 512237                   ICQ: 5662270
==========================================


Jeffrey Bird wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I have been using the web demo of ScanSoft's SpeechWorks - RealSpeak at 
<a class="moz-txt-link-freetext" href="http://www.scansoft.com/speechworks/realspeak/demo/default.asp">http://www.scansoft.com/speechworks/realspeak/demo/default.asp</a>. It has 
very nice output. I even managed to get a nifty perl script going that 
can do TTS from the command line for me.

Jeffrey Bird

Colin Anderson wrote:

    </pre>
    <blockquote type="cite">
      <pre wrap="">The one I like:

<a class="moz-txt-link-freetext" href="http://www.rhetorical.com/cgi-bin/demo.cgi">http://www.rhetorical.com/cgi-bin/demo.cgi</a>

is toast. I think they went broke or got aquired by someone. Also, is 
there
a Festival voice that sounds as good as Rhetorical or the AT &amp; T 
stuff? The
default one is barely legible. Since Festival is a little brutal to
configure, I'd like to get someone's recommendation then go through 
the pain
of reconfiguring it only once. 
_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</a>
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
To UNSUBSCRIBE or update options visit:
  <a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
 

      </pre>
    </blockquote>
    <pre wrap="">_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</a>
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
To UNSUBSCRIBE or update options visit:
  <a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</a>
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
To UNSUBSCRIBE or update options visit:
   <a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</a>
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
To UNSUBSCRIBE or update options visit:
   <a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>