[asterisk-users] Re: Using Flite in a call file.

Steven asterisk at tescogroup.com
Fri Aug 4 05:31:56 MST 2006


I could be mistaken, but I thought that you had to have the text to speech engine record a temp file first, then play that file back 
durring the call.
???

-- 
-- 
Steven

http://www.glimasoutheast.org



"Joey McDonald" <joey at scare.org> wrote in message news:b0d010580608031332s9a816cel889a6724931a333a at mail.gmail.com...
Greetings,

I've created a perl CGI that will generate an asterisk call file in /var/spool/asterisk/outgoing/

I'm stuck however getting the application 'Flite' working in the call file. By way of example, the CGI generates
the following:

---------------------------------------------------------------------------------
channel: Local/xxxxxxxxxx at from-internal
maxretries: 3
retrytime: 60
waittime: 60
callerid: "WakeUp" <*62>
application: Flite("Wake me up")
data:
---------------------------------------------------------------------------------

Where xxxxxxxxxx is a phone number to dial and "Wake me up" is text entered by the form.

Asterisk correctly dial's the number but Flite isn't executed properly. If I change the application line to

application: MusicOnHold

It executes that just fine. I have Flite working in my dialplan, like so:

exten => *65,1,Answer
exten => *65,2,Flite("Your phone number is ${CALLERIDNUM}, now go do some work.")
exten => *65,3,Hangup

That works just fine; lastely asterisk has Flite properly registered as an application:

pbx*CLI> show application flite
pbx*CLI>
  -= Info about application 'Flite' =-

[Synopsis]
Say text to the user, using Flite

[Description]
  Flite(text[|intkeys]):  This will invoke the Flite TTS engine,
send a text string, get back the resulting waveform and play it to
the user, allowing any given interrupt keys to immediately terminate
and return.

So, I'm stuck and not too sure how to get this to go. Any suggestions, thanks!

          --joey








_______________________________________________
--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 






More information about the asterisk-users mailing list