Both Festival and Cepstral app commands take a string but you could use
external programming to pass a file or  in this modified example from "The
Future of Telephony" use a filename.....

Lines indented are all on one line.

 (copy text to file)

echo "All circuits are busy. Please try your call later." >
           /var/lib/asterisk/sounds/text/all-busy

 (setup extenxion to test)

exten => 528,1,Answer()
exten => 528,2,Macro(saytext,all-busy)
exten => 528,3,Hangup()


 (macro calls Cepstral swift. Could be festival)

[macro-saytext]
exten => s,1,Setvar(text_filename=/var/lib/asterisk/sounds/text/${ARG1})
exten => s,2,System(/usr/local/bin/swift -p 'audio/sampling-rate=8000' -n
               Diane -m text -f ${text_filename} -o /tmp/swift.wav)
exten => s,3,Playback(/tmp/swift)
exten => s,4,System(rm /tmp/swift.wav)


The only thing annoying is that if the string is very long, a page of text
for instance, there is a considerable delay while it makes the wav file.
For short, one line sentences, this is not a problem.

Doug


On Mon, 12 Jun 2006, Walid Azab wrote:

>
> Hi all,
>
> I need to simply use Asterisk to receive incoming calls in an IVR manner. It
> should authenticate users and read data from MySQL table that match their ID
> through Text-to-speech. I already have Asterisk 2.6 ([EMAIL PROTECTED]). I
> understand that I need to use Festival and AGI but do not know what to do
> exactly. Any help is appreciated.
>
>
>
> Thanks
>
>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>


"Those that sacrifice essential liberty to obtain a little temporary safety
 deserve neither liberty nor safety."  -- Ben Franklin (1759)

****************************
*  Doug Crompton           *
*  Richboro, PA 18954      *
*  215-431-6307            *
*                          *
* [EMAIL PROTECTED]        *
* http://www.crompton.com  *
****************************


_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to