SPEVENT

This structure contains information about an event. Events are passed from the TTS or speech recognition (SR) engines or audio devices back to applications.

typedef [restricted] struct SPEVENT{
  WORD eEventId;
  WORD elParamType;
  ULONG ulStreamNum;
  ULONGLONG ullAudioStreamOffset;
  WPARAM wParam;
  LPARAM lParam;
} SPEVENT;

Members

  • eEventId
    Event identifier. Possible types are defined for the SPEVENTENUM enumeration.
  • elParamType
    Parameter type. Possible types are defined for the SPEVENTLPARAMTYPE enumeration.
  • ulStreamNum
    Input stream number associated with the event.
  • ullAudioStreamOffset
    Byte offset into the associated audio stream at which the event was fired. For synthesis, the output stream is the synthesized data. For recognition, the byte offset indicates the position in the input audio stream.
  • wParam
    Generic word. For event identifiers with the SPET_LPARAM_IS_POINTER set, this is the size, in bytes, for the data specified by lParam. In some cases, the type of event will change the use of this member. See SPEVENTENUM for information about specific events.
  • lParam
    Generic event. For event identifiers with the SPET_LPARAM_IS_POINTER set, this member points to data allocated by CoTaskMemAlloc. The caller is responsible for freeing the memory using CoTaskMemFree. In some cases, the type of event will change the use of this member. See SPEVENTENUM for information about specific events.

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.