Speech SDK 5.1 Grammar Problem
Posted on 2005-03-22
I am new to speech technologies and trying to develop a calculator application with speech recognition with c#.
As for now i encountered two major problems which i couldn't overcome.
The first one is while writing an xml grammar for the speech api i couldn't add recursive context free grammar rules to the grammar. Every time i added such a rule and compiled the grammar file i received compilation error because of circular referencing. Is there a way to implement recursive CFG grammars.The recursive part of my grammar is like :
<RULE ID = "OperationExpr">
<RULE ID = "Operation">
The second problem is about accessing values of recognized phrases.
For example in the code when defining two child phrases like
is there a way to make the grammar such that i can add the return values of these two phrases and make the speech engine return me "3" as recognized phrase. I need to implement this function in the xml grammar not as a program functionality in c#