This function passes a string through an active voice grammar and provides a semantic interpretation. Instead of performing speech recognition on actual audio, this function is used only to evaluate the semantic interpretation of text strings against grammars.
int InterpretText(const char* text, unsigned int flags);
Zero (0) or greater indicates success.
A negative result indicates a specific error.
text
A space separated string of words. This is the string for which you want a semantic interpretation.
Flags (bitwise OR flags to set desired options)
LV_DECODE_SEMANTIC_INTERPRETATION - This flag tells the decoder to process the parse tree return type for semantic information in the tree's tags.
The interpretation is stored in a voice channel called LV_INTERPRET_CHANNEL. Similar to the LVSpeechPort::Decode function, you may get the interpretation by using LVSpeechPort::GetInterpretation and LVSpeechPort::GetInterpretationString. You can also call LVSpeechPort::GetNumberOfInterpretations and LVSpeechPort::GetNumberOfParses.
On an error, call LV_SRE_ReturnErrorString with the negative result from LV_SRE_Decode to get a description of the error.
Complete Help Topic List | Speech Engine Product Information