LVGrammar_SetRoot

Identifies one of the grammar rules as the root rule.  The root rule is where the engine starts its search.

Function

int LVGrammar_SetRoot(HGRAMMAR hgram, const char* rule_name)

Parameters

hgram

A handle to the grammar.

rule_name

The name of the rule.

Example

LVGrammar_SetRule(hgram, "foo");

Is the same as writing in a grammar:

root $foo;

See Also


Complete Help Topic List | Speech Engine Product Information