Partager via


SPPHRASEPROPERTY

This structure contains the information for one semantic property. It can be used to construct a semantic property tree.

struct SPPHRASEPROPERTY{
  const WCHAR* pszName;
  ULONG ulId;
  const WCHAR* pszValue;
  VARIANT vValue;
  ULONG ulFirstElement;
  ULONG ulCountOfElements;
  const SPPHRASEPROPERTY* pNextSibling;
  const SPPHRASEPROPERTY* pFirstChild;
  char SREngineConfidence;
  char Confidence;
};

Members

  • pszName
    Pointer to the name of the semantic property. This property is in the Speech Text Grammar format and is set using the PROPNAME attribute.
  • ulId
    Identifier of the semantic property. This identifier is in the Speech Text Grammar format and is set using the PROPID attribute.
  • pszValue
    Pointer to the value of the semantic property. This value is in the Speech Text Grammar format and is set using the VALSTR attribute.
  • vValue
    VARIANT type of the semantic property. The type must be one of the following: VT_BOOL, VT_I4, VT_R4, VT_R8, or VT_BYREF (only for dynamic grammars). The type is set using the VAL attribute in the Speech Text Grammar format.
  • ulFirstElement
    First spoken element to which the property applies.
  • ulCountOfElements
    Number of spoken elements to which this property applies.
  • pNextSibling
    Pointer to an SPPHRASEPROPERTY structure for the next sibling in the property tree.
  • pFirstChild
    Pointer to an SPPHRASEPROPERTY structure for the first child to which the semantic property applies.
  • SREngineConfidence
    Engine-specific confidence value for the semantic property. The value range is specific to each SR engine.
  • Confidence
    SAPI-specific confidence value for the semantic property. Possible values are SP_LOW_CONFIDENCE, SP_NORMAL_CONFIDENCE, and SP_HIGH_CONFIDENCE.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Sapi.h, Sapi.idl.

See Also

SAPI Structures

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.