Note: Rather than using concept/phrase grammars, LumenVox encourages the use of SRGS grammars. SRGS grammars provide a standards-based method of creating grammars that is more robust and easier to troubleshoot than concept/phrase grammars. See our SRGS tutorial for more information on working with SRGS grammars.
Adds a phrase to a new or existing concept.
int LV_SRE_AddPhrase(HPORT hport, int GrammarSet, const char* Concept , const char* Phrase);
LV_SUCCESS
No errors; the phrase was added to the concept.
LV_BAD_HPORT
The engine is no longer running. This is the result of a ClosePort call or a unrecoverable engine error.
LV_GRAMMAR_SET_OUT_OF_RANGE
The grammar set is out of range.
LV_GRAMMAR_SYNTAX_ERROR or LV_GRAMMAR_SYNTAX_WARNING
The phrase entered has bad syntax, such as mismatched parenthesis.
Which grammar set to add the phrase. Integer value between 0 - 63, inclusive.
Which concept to add the phrase. Null-terminated string.
The new phrase.
The concept can be a new or existing concept; the call will automatically add the new concept with the single phrase.
Complete Help Topic List | Speech Engine Product Information