ISpeechBaseStream Write Method (SAPI 5.3)

Microsoft Speech API 5.3

Interface: ISpeechBaseStream

Write Method

The Write method writes data to a stream object.

The Write method writes text or audio data from a Variant variable into the stream, starting at the Seek pointer and writing until all data has been copied. When the method has completed, it returns the number of bytes written, and resets the Seek pointer one byte past the last byte written.

     Buffer As Variant
) As Long


  • Buffer
    A Variant variable containing the data to be written.

Return Value

A Long variable indicating the number of bytes written.


Use of the Write method is demonstrated in a code example at the end of the ISpeechBaseStream section.