Browse
 
Tools
Rss Categories

LVSpeechPort::GetParseTreeString

Reference Number: AA-00787 Views: 1725 0 Rating/ Voters

Provides a string representation of a speech parse tree.

Function

  • const char* GetParseTreeString(int VoiceChannel, int index)

Parameters

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 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