contents.gifindex.gifprev1.gifnext1.gif

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.)

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

DECtalk00090000.gif 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.

DECtalk00090000.gif 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.

DECtalk00090000.gif TTS_CAPS_T Structure (ttsapi.h)

DECtalk00090000.gif Return of Memory Buffers


Related topics