Return the value of the meta data indicated by the index.
int GetMetaDataValue(int index)
index
Index of the meta data. It should be in the range [0, LVGrammar::GetNumberOfMetaData).
null
The index is not valid.
non-null
A pointer to the value string.
If the grammar has following lines:
meta 'description' is 'example grammar';
meta 'date' is '05/12/2005';
You can access meta data as follows:
int count = grammar.GetNumberOfMetaData(); // returns 2
const char* key = grammar.GetMetaDataKey(0); // returns "description"
const char* value = grammar.GetMetaDataValue(1); // returns "05/12/2005"
Complete Help Topic List | Speech Engine Product Information