TF_LMLATTELEMENT structure (ctffunc.h)

The TF_LMLATTELEMENT structure contains information about a lattice element. A lattice element is used in speech recognition. This structure is used with the IEnumTfLatticeElements::Next method.

Syntax

typedef struct TF_LMLATTELEMENT {
  DWORD dwFrameStart;
  DWORD dwFrameLen;
  DWORD dwFlags;
  union {
    INT iCost;
  };
  BSTR  bstrText;
} TF_LMLATTELEMENT;

Members

dwFrameStart

Contains the starting offset, in 100-nanosecond units, of the element relative to the start of the phrase.

dwFrameLen

Contains the length, in 100-nanosecond units, of the element.

dwFlags

Not currently used.

iCost

Specifies the actual confidence for this element. This can be one of the following values.

Value Meaning
SP_LOW_CONFIDENCE The speech engine has low confidence in the element.
SP_NORMAL_CONFIDENCE The speech engine has normal confidence in the element.
SP_HIGH_CONFIDENCE The speech engine has high confidence in the element.

bstrText

Contains the display text for the element. If the spoken word is "two", the display text will be "2". The caller must free this string using SysFreeString when it is no longer required.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header ctffunc.h
Redistributable TSF 1.0 on Windows 2000 Professional

See also

IEnumTfLatticeElements::Next

SysFreeString