Share via


SPEVENT

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

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

Syntax

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

Header sapi.h, sapi.idl
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

SAPI Structures