


Return of Memory Buffers
Click
Click
The application must not modify any buffer passed to the text-to-speech system
by the TextToSpeechAddBuffer call until the buffer is returned from the
text-to-speech system to the calling application. The application then owns the
buffer. If no buffers are available, the system blocks. If the application is
processing relatively long passages of text, it is recommended that the application
queues several buffers and then requeues each buffer after finishing with it so
that the system is not idle.
A call to TextToSpeechReset returns all buffers to the application. The
TextToSpeechReturnBuffer call is supplied to force the return of the current memory
buffer, whether it is filled or not. This call might not be required by most
applications. It is includes so an application can obtain the last buffer without
forcing that buffer to be sent with the TTS_FORCE command in the
TextToSpeechSpeak call. This might be required if the application performs its own buffer
management.
When the memory buffer, a
The memory buffer, which is pointed to by the lpData field, is filled.
The phoneme array is filled.
The index mark array is filled.
A TTS_FORCE argument is used in the call to TextToSpeechSpeak.
| Parameter
| Value
|
| dwBufferLength
| Number of bytes of audio samples.
|
| lpData
| Pointer to the audio sample data.
|
| dwNumberOfPhonemeChanges
| Number of phoneme changes.
|
| lpPhonemeArray
| Pointer to the phoneme information.
|
| dwNumberOfIndexMarks
| Number of index marks.
|
| lpIndexArray
| Pointer to the index mark information.
|