Browse
 
Tools
Rss Categories

LVGrammar_SetMode (Deprecated)

Reference Number: AA-00855 Views: 1781 0 Rating/ Voters

Set mode property for the grammar,

Function

  • int LVGrammar_SetMode(HGRAMMAR Grammar, const char* mode)

Parameters

Grammar

A handle to the grammar.

mode

The interaction mode of the grammar.

Example

 The following code in C:

LVGrammar_SetLanguage(Grammar, "en-US");
LVGrammar_SetMode(Grammar, "voice");
LVGrammar_SetTagFormat(Grammar, "lumenvox/1.0");

Is the same as writing in your grammar:

#ABNF 1.0 UTF-8;
language en-US;
mode voice; 

tag-format <lumenvox/1.0>;