[asterisk-speech-rec] Lumenvox -  Voice Dial an extension
    Stephen Keller 
    StephenKeller at LumenVox.com
       
    Tue Jul  8 10:59:35 CDT 2008
    
    
  
> Is it possible to voice dial an extension , like if I want to call extension 987 , say dial Nine- Eight-Seven !
> Tried with following grammars
> $var1 = (Nine | Eight | Seven) {out="987"}; and $var1 = (Nine  Eight  Seven) {out="987"}; both are not working
The second example,
$var1 = (Nine Eight Seven) {out="987"};
Is correct. When you say it is "not working" what do you mean?
Here is a simple grammar that should do what you're looking for:
=== Grammar Below ===
  #ABNF 1.0 UTF-8;
  language en-US;
  mode voice;
  tag-format <semantics/1.0.2006>;
  root $rootrule;
  $rootrule = ($var1 | $var2) {out=rules.latest()};
  $var1 = (nine eight seven) {out="987"};
  $var2 = (one two three) {out="123"};
=== End Grammar ===
Does that work for you?
Thanks,
Stephen Keller
Project Manager
LumenVox
P: 1-877-977-0707 - just say, "Support"
P: +1-858-707-7700
F: +1-858-707-7072
support at LumenVox.com
www.LumenVox.com
    
    
More information about the asterisk-speech-rec
mailing list