LVSpeechPort::GetRawTextDecoded

Note: Rather than using concept/phrase grammars, LumenVox encourages the use of SRGS grammars. SRGS grammars provide a standards-based method of creating grammars that is more robust and easier to troubleshoot than concept/phrase grammars. See our SRGS tutorial for more information on working with SRGS grammars.

Returns the decoded raw text (without BNF formatting) found in the last call to Decode.

const char* GetRawTextDecoded(HPORT hport,int VoiceChannel, int Index);

Return Values

A null-terminated string representing the decoded raw text.

Parameters

VoiceChannel

The voice channel to process.

Index

The recognition position of the decoded raw text.

Remarks

Assuming the speaker said "Violet" and the grammar contained the concepts under Concept, and the grammar under Phrase, the Speech Engine  might return the raw text highlighted:

The main difference between GetPhraseDecoded and GetRawTextDecoded is in BNF formatting.  GetPhraseDecode returns the decoded phrase, as it is entered into the grammar.  If the phrase contains BNF formatting, with selections, options, grouping, etc., than the return value preserves that formatting.  GetRawTextDecoded returns the decode phrase, after BNF formatting has been removed.  Thus, GetRawTextDecoded will return the phrase as a list of the words actually recognized, rather than the phrase as it was entered into the grammar.

See Also


Complete Help Topic List | Speech Engine Product Information