These methods allow the ActiveX Application to evaluate the results from a SRGS grammar. The Concept/Phrase methods of retrieving results will also operate on SRGS grammars.
Public Function GetNumberOfSRGSParses() As Long
Public Function GetParseTreeString(Index As Long) As String
Public Function GetSemanticInterpretationCount() As Long
Public Function GetSemanticInterpretationString(Index As Long, Category As LVCA_InterpretationStringCategory) As String
ParseCount = LVCA.GetNumberOfSRGSParses
Parse = LVCA.GetParseTreeString(Index)
IntCount = LVCA.GetSemanticInterpretationCount
Interp = LVCA.GetSemanticInterpretationString(Index, Category)
Index - Long - zero based index
Category - LVCA_InterpretationStringCategory - What semantic Interpretation information to return.
INTSTR_CONTENT = 0
INTSTR_LABEL = 1
INTSTR_LANG = 2
INTSTR_MODE = 3
INTSTR_TOPRULE = 4
ParseCount - Long - count of valid parses
Parse - String - This is the entire parse tree.
IntCount - Long - This is the number of valid interpretations
Interp - String - The information requested.
After Decode
INTSTR_CONTENT is the actual interpretation of what the caller said. For more information on SRGS Grammars please refer to the LumenVox SDK
Complete Help Topic List | Speech Platform Product Information