TF_LMLATTELEMENT

TF_LMLATTELEMENT structure

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 {
  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.

ValueMeaning
SP_LOW_CONFIDENCEThe speech engine has low confidence in the element.
SP_NORMAL_CONFIDENCEThe speech engine has normal confidence in the element.
SP_HIGH_CONFIDENCEThe 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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Redistributable

TSF 1.0 on Windows 2000 Professional

Header

Ctffunc.h

IDL

Ctffunc.idl

See also

IEnumTfLatticeElements::Next
SysFreeString

 

 

Show:
© 2016 Microsoft