Provides a string representation of a speech parse tree.
- const char* GetParseTreeString(int VoiceChannel, int index)
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 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