Loads a grammar from a local file or remote file via http or ftp. Grammar can be written in ABNF or XML notations.
int LoadGrammar(const char* grammar_location)
gram_location
A file descriptor or uri that points to a valid SRGS grammar file, such as "c:/grammars/pizza.grxml", "http://www.gramsRus.com/phonenumber.gram", or "builtin:dtmf/boolean?y=1;n=2"
LV_SUCCESS
No errors; this grammar is now ready for use.
LV_GRAMMAR_SYNTAX_WARNING
The grammar file was not fully conforming, but it was understandable and is now ready to be used
LV_GRAMMAR_SYNTAX_ERROR
The grammar file was not understandable to the grammar compiler. You will not be able to decode with this grammar.
LV_GRAMMAR_LOADING_ERROR
The grammar compiler was unable to find the location of the grammar you loaded.
Detailed error and warning messages are sent to the grammar object's logging callback function.
LVGrammar_LoadGrammar (C API)
Complete Help Topic List | Speech Engine Product Information