Initialization of Memory Buffers

A memory buffer is a TTS_BUFFER_T structure. This structure and the elements of its lpData, lpPhonemeArray, and lpIndexArray members must be allocated. (Note that these last two pointers can be set to NULL optionally if they are not used by the application.)

·      The lpData element points to a byte array. The dwMaximumBufferLength must be set to the length of this array.

·      If the lpPhonemeArray element is set to NULL, then no phonemes are returned. Otherwise, the lpPhonemeArray element must point to an application-allocated array of structures of type TTS_PHONEME_T. The length of this array must be copied into the dwMaximumNumberOfPhonemeChanges element.

·      If the lpIndexArray element is set to NULL, then no index marks are returned. Otherwise, the lpIndexArray element must point to an application-allocated array of structures of type TTS_INDEX_T. The length of this array must be copied into the dwMaximumNumberOfIndexChanges element.

·      TTS_CAPS_T Structure (ttsapi.h)

·      Return of Memory Buffers

btn_mini.gif Related topics