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 LV_SRE_InterpretText(HPORT hport, const char* text, unsigned int flags)
The port's handle.
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 input hport is not a valid one.
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
LV_SRE_Decode function, you may get the interpretation by using
LV_SRE_GetInterpretationString. You can also call LV_SRE_GetNumberOfInterpretations, and