Browse
 
Tools
Rss Categories

LVGrammar_SetLanguage

Reference Number: AA-00854 Views: 1463 0 Rating/ Voters

Set language for the grammar,

Function

int LVGrammar_SetLanguage(HGRAMMAR Grammar, const char* language)

Parameters

Grammar

A handle to the grammar.

language

The language identifier for 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>;