Export (0) Print Expand All  ISpNotifySink (SAPI 5.4)  Speech
API 5.4 Microsoft Speech API 5.4   In both speech synthesis and
speech recognition, applications receive notifications when
words have been spoken or when phrases have been recognized.
SAPI components that generate notifications implement an
ISpNotifySource.  The ISpNotifySource and ISpNotifySink
interfaces alone only provide a mechanism for a notification but
no information on the events that caused the notification. With
an ISpEventSource object, an application can retrieve
information about the events that caused the notification. An
ISpEventSource also provides the mechanism to filter and queue
events. By default, an application (really an ISpNotifySink)
receives no notifications from ISpEventSource until SetInterests
has been called to specify on which events to notify or queue.
When an application is notified of an event that is not queued,
an application will take measures based on which event sink is
receiving the notification. From contex