Provides a string representation of a speech parse tree.
- const char* LV_SRE_GetParseTreeString(HPORT hport, int VoiceChannel, int index)
The handle to the speech port.
The audio channel containing the input audio
It is possible to have more than one parse tree possibility (for instance if the grammar is ambiguous); this is the index of the tree
A non-zero length string
The resultant indexed parse tree string.
Zero length string
When an error occurs.
A speech parse tree and the parse string returned to the user are logically the same. However, a speech parse tree makes it easy to search the parse tree for useful information. The parse tree string is based on the examples provided by the W3C SRGS specification