Hi, This is a naive question, but is there a way in my AGI script to simultaneously play audio and listen for DTMF or voice responses? I've heard VOIP hackers call this "inbargeability;" it's the ability to "barge in" to a playing audio clip. I'm planning to use Lumenvox for the DTMF and voice recognition, BTW. Not sure if that matters. Many thanks to anyone who can lend me a clue about this, -- Quinn Weaver Consulting, LLC Full-stack web design and development http://quinnweaver.com/ 510-520-5217
Sure, as long as you use whatever is equivalent to the Background() dial plan app, or Background() itself. On 01/04/2010 08:41 PM, Quinn Weaver wrote:> Hi, > > This is a naive question, but is there a way in my AGI script to > simultaneously play audio and listen for DTMF or voice responses? > I've heard VOIP hackers call this "inbargeability;" it's the ability > to "barge in" to a playing audio clip. > > I'm planning to use Lumenvox for the DTMF and voice recognition, BTW. > Not sure if that matters. > > Many thanks to anyone who can lend me a clue about this, >-- Alex Balashov - Principal Evariste Systems Web : http://www.evaristesys.com/ Tel : (+1) (678) 954-0670 Direct : (+1) (678) 954-0671
On Mon, 4 Jan 2010, Quinn Weaver wrote:> This is a naive question, but is there a way in my AGI script to > simultaneously play audio and listen for DTMF or voice responses?t2:vtpv:18:04:59> show agi stream file Usage: STREAM FILE <filename> <escape digits> [sample offset] Send the given file, allowing playback to be interrupted by the given digits, if any. Use double quotes for the digits if you wish none to be permitted. If sample offset is provided then the audio will seek to sample offset before play starts. Returns 0 if playback completes without a digit being pressed, or the ASCII numerical value of the digit if one was pressed, or -1 on error or if the channel was disconnected. Remember, the file extension must not be included in the filename. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
Quinn Weaver
2010-Jan-05 20:56 UTC
[asterisk-users] [asterisk-speech-rec] AGI and embargeability
On Tue, Jan 5, 2010 at 12:20 AM, Trevor Benson <tbenson at a-1networks.com> wrote:> Its called speechbackground. ?from asterisk console type 'core show applications speech' (and hit the tab key) these are the speech applications used. ?Speechbackground being similar to background.Thanks, Trevor, Steve, and Alex. I should have been clearer about what I want to do. I want to play a sound file while listening for *either* speech *or* DTMF input. Either should affect control flow. Think "for customer service, press or say 2." Is there any way to do this? My second constraint is that I want to do this within a single AGI script. I'd prefer using AGI commands rather than EXEC'ing dialplan applications like Background and speechbackground, but I guess I can use apps if I need to. Thanks again,> > > Trevor Benson > A1 Networks ?| ?Network Engineer > dCAP- Digium Certified Asterisk Professional > LPIC-1, Network+, CNA, MCP > DID (707)703-1041 > Fax (707)703-1983 > tbenson at a-1networks.com > > > > > > On Jan 4, 2010, at 5:41 PM, Quinn Weaver wrote: > >> Hi, >> >> This is a naive question, but is there a way in my AGI script to >> simultaneously play audio and listen for DTMF or voice responses? >> I've heard VOIP hackers call this "inbargeability;" it's the ability >> to "barge in" to a playing audio clip. >> >> I'm planning to use Lumenvox for the DTMF and voice recognition, BTW. >> Not sure if that matters. >> >> Many thanks to anyone who can lend me a clue about this, >> >> -- >> Quinn Weaver Consulting, LLC >> Full-stack web design and development >> http://quinnweaver.com/ >> 510-520-5217 >> >> _______________________________________________ >> --Bandwidth and Colocation Provided by http://www.api-digital.com-- >> >> asterisk-speech-rec mailing list >> To UNSUBSCRIBE or update options visit: >> ? http://lists.digium.com/mailman/listinfo/asterisk-speech-rec > > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-speech-rec mailing list > To UNSUBSCRIBE or update options visit: > ? http://lists.digium.com/mailman/listinfo/asterisk-speech-rec >-- Quinn Weaver Consulting, LLC Full-stack web design and development http://quinnweaver.com/ 510-520-5217