Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
BufferSize
Collapse the table of content
Expand the table of content

ISpeechAudioBufferInfo BufferSize Property (SAPI 5.4)

Speech API 5.4
Microsoft Speech API 5.4

Object: ISpeechAudioBufferInfo

BufferSize Property


The BufferSize property gets and sets the size of the audio object's buffer, in milliseconds.

For readable audio objects, this is simply a preferred size because readable objects will automatically expand their buffers to accommodate data. For writable audio objects, this is the amount of audio data that will be buffered before a call to Write will block.

This value must be greater than or equal to 200 milliseconds. A reasonable default is 500ms.


Syntax

Set: ISpeechAudioBufferInfo.BufferSize = Long
Get: Long = ISpeechAudioBufferInfo.BufferSize

Parts

ISpeechAudioBufferInfo
The owning object.
Long
Set: A Long variable that sets the buffer size.
Get: A Long variable that gets the buffer size.
Show:
© 2015 Microsoft