LVSpeechPortABNF_AddRule

Adds a new rule to the ABNF grammar.

int LVSpeechPortABNF_AddRule(HPORT port,int grammarset,const char* rulename,const char* rule_expansion)

Return Values

LV_SUCCESS

No errors; the rule was added successfully

LV_GRAMMAR_ERROR

The rule was not understood, and was not added.

Note:

Calling

LVSpeechPortABNF_AddRule(port, grammarset, "$foo", "example speech $bar");

is equivalent to having the following line in your ABNF grammar file:

$foo = example speech $bar;

Also, the $ sign on "foo"  is optional in the call to AddRule.

 


Complete Help Topic List | Speech Engine Product Information