[asterisk-users] agi+cepstral driving me nuts

Julian J. M. julianjm at gmail.com
Tue Dec 26 17:26:06 MST 2006


Why don't you try app_swift?
http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Swift

This one even compiles on 1.4, and has buffering, meaning that it
doesn't have to wait for the tts to generate the complete output.

http://www.loopfree.net/app_swift/

exten => s,1,AGI(getinfo.php)
exten => s,2,Swift( ${RESULT_INFORMATION} )

Julián J. M.

On 12/26/06, blackwater dev <blackwaterdev at gmail.com> wrote:
> I just got cepstal working fine in the dial plan using code like:
>
> exten => 511,5,AGI(cepstral.pl|Welcome to my house finder.  At the beep
> enter your zip code.)
>
>
> The php script it calls is based on the nerdvittles weather one so it calls
> a webpage which prints to the screen, the nerdvittles code uses system to
> generate the .wav file then has the dial plan call it via:
>
> //php script
> $retcode2 = system ("flite -f  $tmptext -o $tmpwave") ;
>
> //extensions
> exten => 411,9,NoOp(Wave file: ${TMPWAVE})
> exten => 411,10,Playback(${TMPWAVE})
>
>
> Since I am using capstral, I simply changed the line to below which works
> fine from the command line but when calling, I never hear it, it just hangs
> up.  Is it timing out?  Is there a better way to do this?  How can I return
> just a string of Text to read so I don't have to create the .wav file then
> play it?
>
> $retcode2 = system ("swift -n Diane -m text -f  $tmptext -o $tmpwave") ;
>
>
> Thanks!
>


More information about the asterisk-users mailing list