Browse
 
Tools
Rss Categories

LV_SRE_GetParseTreeString

Reference Number: AA-00700 Views: 6829 0 Rating/ Voters

Provides a string representation of a speech parse tree.

Function

  • const char* LV_SRE_GetParseTreeString(HPORT hport, int VoiceChannel, int index)

Parameters

hport

The handle to the speech port.

VoiceChannel

The audio channel containing the input audio

index

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

Return Values

A non-zero length string

The resultant indexed parse tree string.

Zero length string

When an error occurs.

Remark

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

See Also