[asterisk-users] Digits and Vestec

Danny Nicholas danny at debsinc.com
Tue May 11 14:58:20 CDT 2010


This one works on my box (Vestec on 1.4.30 on OpenSuse)
#ABNF 1.0;
mode voice;
language en-US;

// The lumenvox tag format tracks the current working draft of
// the W3Cs semantic interpretation proposal.
// 1.0 corresponds to the working draft released on 01 April 2003
tag-format <semantics/1.0>;

root $AcctNumber;

/*
* ONE:"1" is shorthand for
* ONE {!{ $="1" }!}
* "$" refers to the current rule being matched ($Digit)
* So the net effect is that $Digit resolves to a one digit string
* after semantic interpretation.
*/

$Digit = (ONE:"1" |
TWO:"2" |
THREE:"3" |
FOUR:"4" |
FIVE:"5" |
SIX:"6" |
SEVEN:"7" |
EIGHT:"8" |
NINE:"9" |
(OH|ZERO):"0");

/*
* $AreaCode resolves to a three digit string
* after semantic interpretation.
*/

/*
* $Number resolves to a seven digit string
* after semantic interpretation.
*
* $$ is shorthand for the last rule detected
* i.e. $Digit */
$Number = { $ = "" } ( $Digit { $ += $$ } ) <2-16>;

/*
* After semantic interpretation,
* $PhoneNumber resolves to a structure with two member variable strings,
* areacode (which defaults to "205"), and number.
*/

$AcctNumber = ($Number { $.number = $$ } ) | ( $Number ) { $.number = $$ };

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Richard Kenner
Sent: Tuesday, May 11, 2010 2:40 PM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Digits and Vestec

I installed the Vestec system and am testing out using it to get strings of
digits (e.g. conference numbers).  The sample grammer just allows saying 
"zero", but almost everybody will read it it "oh".  But when I try to
add that as an alternative in the grammer (either the word "oh" or
phonetically as "{ow:zeroalternate}"), recognition accuracy goes way down.
Does anybody know a good way to do this?

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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