Browse
 
Tools
Rss Categories

LVSpeechPort::GetParseTree

Reference Number: AA-00786 Views: 1731 0 Rating/ Voters

Returns a handle to a speech parse tree, representing the sentence structure of what was decoded by the Speech Engine, according to the active grammars.

Function

  • LVParseTree GetParseTree(int VoiceChannel, int index)

Parameters

VoiceChannel

The audio channel containing the input audio

index

It is possible to have more than one parse tree for an utterance (for instance if the grammar is ambiguous); this is the index of the tree

Return Value

The return type is a parse tree object.

Remarks

A parse tree and the parse string returned are logically the same. However, an LVParseTree object makes it easy to search the parse tree for useful information.

The LVParseTree object can be manipulated using the methods described in the LVParseTree C++ API.

See Also