LV_SRE_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 retained) found in the last call to LV_SRE_Decode.

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

Return Values

A static string

Parameters

VoiceChannel

The voice channel to process.

Index

The recognition position of the phrase to decode.

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 LV_SRE_GetPhraseDecoded and LV_SRE_GetRawTextDecoded is in BNF formatting.  LV_SRE_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.  LV_SRE_GetRawTextDecoded returns the decode phrase, after BNF formatting has been removed.  Thus, LV_SRE_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