[asterisk-users] How to make SpeechBackground keep playingifutterance doesn't match our grammar

Danny Nicholas danny at debsinc.com
Mon Jan 25 16:07:26 CST 2010


What does your dialplan snippet to run this look like?
--


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Quinn Weaver
Sent: Monday, January 25, 2010 3:57 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] How to make SpeechBackground keep
playingifutterance doesn't match our grammar

On Mon, Jan 25, 2010 at 1:06 PM, Danny Nicholas <danny at debsinc.com> wrote:
> I assume you've tried the $GARBAGE in your grammar to make speech run
> "tightly"?

Yes, we use $GARBAGE currently.  Here's our grammar:

#ABNF 1.0 UTF-8;

language en-US;

mode voice;

tag-format <lumenvox/1.0>;

root $Command;

$Play_Next = [play] next $GARBAGE;
$Quit = quit $GARBAGE;
$Rewind = rewind $GARBAGE;
$Previous = (previous | privius | preevious) $GARBAGE;
$Pause = pause $GARBAGE;
$Fast_Forward = ([fast] forward) $GARBAGE;
$Replay = replay $GARBAGE;

$Command =
      $Play_Next {$ = "play_next";}
    | $Quit {$ = "quit";}
    | $Rewind {$ = "rewind";}
    | $Previous {$ = "previous";}
    | $Pause {$ = "pause";}
    | $Fast_Forward {$ = "fast_forward";}
    | $Rewind {$ = "rewind";}
    | $Replay {$ = "replay";};

Thanks,

[Omitting asterisk-speech-rec due to some problems with Mailman]

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