LVSpeechPort::GetPhraseDecoded

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 phrase (with BNF formatting) found in the last call to Decode.

const char* GetPhraseDecoded(int VoiceChannel, int Index);

Return Values

A null-terminated string representing the decoded string.

Parameters

VoiceChannel

The voice channel to process.

Index

The recognition position of the decoded phrase.

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 phrases highlighted:

The main difference between LVSpeechPort::GetPhraseDecoded and LVSpeechPort::GetRawTextDecoded is in BNF formatting.  LVSpeechPort::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.  LVSpeechPort::GetRawTextDecoded returns the decode phrase, after BNF formatting has been removed.  Thus, LVSpeechPort::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