다음을 통해 공유


SPEVENT (Windows CE 5.0)

Send Feedback

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{  WORDeEventId;  WORDelParamType;  ULONGulStreamNum;  ULONGLONGullAudioStreamOffset;  WPARAMwParam;  LPARAMlParam;}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

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.