Is it possible to run the Festival command in the same manner as the Background command so that it can be interrupted by caller key presses? -- Howard. LANNet Computing Associates; Your Linux people <http://www.lannetlinux.com> ------------------------------------------ "When you just want a system that works, you choose Linux; when you want a system that just works, you choose Microsoft." ------------------------------------------ "Flatter government, not fatter government; Get rid of the Australian states."
On Thu, 27 Jan 2005 18:20:32 +1100, Howard Lowndes wrote:>Is it possible to run the Festival command in the same manner as the >Background command so that it can be interrupted by caller key presses?I can think of a round about way,.... run festival and create wav/gsm and play resultant output as background :-) GS .
On Thu, 2005-01-27 at 18:34, Gary wrote:> On Thu, 27 Jan 2005 18:20:32 +1100, Howard Lowndes wrote: > > >Is it possible to run the Festival command in the same manner as the > >Background command so that it can be interrupted by caller key presses? > > I can think of a round about way,.... > > run festival and create wav/gsm and play resultant output as background > :-)Well that is one way, but, unless you had the Festival output pre-stored, you would have a delay whilst the output was being generated and before you could present it as Background. If you want the Festival output to be dynamic then that delay would be unacceptable.> > GS > . > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-- Howard. LANNet Computing Associates; Your Linux people <http://www.lannetlinux.com> ------------------------------------------ "When you just want a system that works, you choose Linux; when you want a system that just works, you choose Microsoft." ------------------------------------------ "Flatter government, not fatter government; Get rid of the Australian states."
I think not since the audio is coming from the festival command not asterisk. I would try this, Exten => s,1,SetVar(FILENAME=FESTIVAL-${EPOCH}) Exten => s,2,AGI(festival-bg|${FILENAME}|Text for festival to speak) Exten => s,3,BackGround(${FILENAME}) The AGI script would take two args, the filename to put the sound file in and then pass the phrase to festival. I don't know what format festival outputs to file in but you could then run the output thru sox to convert it to gsm. Alex -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Howard Lowndes Sent: Thursday, January 27, 2005 2:21 AM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Festival as background Is it possible to run the Festival command in the same manner as the Background command so that it can be interrupted by caller key presses? -- Howard. LANNet Computing Associates; Your Linux people <http://www.lannetlinux.com> ------------------------------------------ "When you just want a system that works, you choose Linux; when you want a system that just works, you choose Microsoft." ------------------------------------------ "Flatter government, not fatter government; Get rid of the Australian states." _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users