Export (0) Print Expand All This topic has not yet been rated -
Rate this topic  SpVoice EndStream event (SAPI 5.3)  Speech API
5.3 Microsoft Speech API 5.3  Object: SpVoice (Events)
EndStream Event  The EndStream event occurs when the text-to-
speech (TTS) engine reaches the end of a stream while speaking
for the SpVoice object.  The StartStream and EndStream events
can be used together to determine the duration of a stream being
spoken.       StreamNumber As Long,      StreamPosition As
Variant   The ending character position in the output stream.
The following Visual Basic form code demonstrates the use of the
StartStream and EndStream events. To run this code, create a
form with the following controls:    • A command button called
Command1   • A text box called Text1  Paste this code into the
Declarations section of the form.  The Form_Load procedure puts
a text string in Text1 and creates a voice object. The
command1_Click procedure calls the Speak method. This will cause
the TTS engine to send the ESt