vxi-discuss



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dtmf grammars questions



Hello,
 
I am trying to make the following code to work.  But "get_gram_from_word" function in "rec_qa.c" does not return the correct value because it does not have the matching sets of name value pairs in the vector.  The vector contains index and the values.  I expect it to contain the dtmf input and the corresponding values.
 
<field name="color_choice">
      <dtmf> 1{blue}| 2{red} | 3{green} </dtmf>
</field>
 
Can anyone explain whether what I see is wrong and whether it is possible to implement the above vxml code?
 
Suresh
 
 
----- Original Message -----
Sent: Tuesday, February 27, 2001 1:56 PM
Subject: dtmf grammars questions

Hello,

I'm trying to use the recognition interface to receive DTMF digits sequences.

It works fine when I need to recognize single digits as the grammar is relatively simple:
for instance if I'm only expected 1,2 or 3 in a field, the following works fine:

<field name="main_choice">
      <dtmf> 1| 2 | 3 </dtmf>
</field>

But if I need to obtain a certain number of digits from the user (e.g. a phone number
with 10 digits), I run into problems as the following is not supported:

<field name ="extension"  type="digits?length=10" >
    <prompt> Enter the 10 digits extension of the user you want to reach
    </prompt>
 </field>

It seems I need a more elaborate support for grammars but does anyone know
a way of writing a grammar that supports the above (with the existing recognition
code) ?

As it seems unlikely, does anyone know of an open-source implementation of a
grammar (e.g. JSGF) that would allow to do this ?

Thanks in advance,

-- 
Vincent Ribiere
senior Engineer, Cisco Systems
(408) 527 6613
 



This page is maintained by Alan W Black (awb@cs.cmu.edu)
speechinfo.org is hosted on a machine donated by VA Linux Systems
VA Linux Systems