

The values assigned to SpeechVoiceEvents constants are single-bit values, like 1, 2, 4, 8, 16, etc.

Get: A number equivalent to the SpeechVoiceEvents in the EventInterests. SpeechVoiceEvents Set: One or more SpeechVoiceEvents setting the EventInterests. The default setting of the EventInterests property is 33278, or 0x081FE, which represents the sum of all SpeechVoiceEvents constants except SVEAudioLevel (a change in audio level). In Visual Basic, it is necessary to use the WithEvents keyword when dimensioning an SpVoice object intended to receive events. If that event type is included in the voice object's event interests, the engine will generate an event of that type. When the engine detects a potential event condition in a stream, it checks the EventInterests property of the voice that enqueued the stream. When it detects one of these conditions, the engine is able to generate a component object model (COM) event that will be received by the voice object that enqueued the stream. When a text-to-speech (TTS) engine speaks a stream of text, it is constantly detecting certain conditions in the stream, such as the completion of phonemes, words and sentences. The EventInterests property gets and sets the types of events received by the SpVoice object.
