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@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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060803/f1fbd9bc/attachment.htm
On Thu, 2006-08-03 at 14:32 -0600, Joey McDonald wrote:> I'm stuck however getting the application 'Flite' working in the call > file. By way of example, the CGI generates > the following:Interesting, I've never heard of this application ...> --------------------------------------------------------------------------------- > channel: Local/xxxxxxxxxx@from-internal > maxretries: 3 > retrytime: 60 > waittime: 60 > callerid: "WakeUp" <*62> > application: Flite("Wake me up") > data: > ---------------------------------------------------------------------------------Your problem is the format of your call file. Your "application" and "data" lines should read: application: Flite data: "Wake me up" -- Russell Bryant Software Developer Digium, Inc.
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@scare.org> wrote in message news:b0d010580608031332s9a816cel889a6724931a333a@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@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