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)
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)
Unused in the current implementation.
This semantic interpretation could not be obtained since the port was shutting down.
Indicates an error in using an active grammar for the interpret operation (eg: there were no words in the compiled grammar).
The port is not valid (either CreateClient has not been called or DestroyClient has been called prior to this call).
Indicates that the license acquired for the interpret operation does not permit the use of the current version of the ASR server.
The grammar could not be loaded due to a license not being available.
Indicates that no ASR servers were available to perform the interpretation.
Indicates that the preceeding interpret operation timed out.
An exception occurred while processing the request.
The interpretation is stored in a voice channel called LV_INTERPRET_CHANNEL. Similar to the
Decode function, you may get the interpretation by using
GetInterpretationString. You can also call