contents.gifindex.gifprev1.gifnext1.gif

TextToSpeechCloseLogFile

The TextToSpeechCloseLogFile call closes a log file opened by the TextToSpeechOpenLogFile call and returns to the startup state. The speech samples are then ignored or sent to an audio device, depending on the setting of the dwDeviceOptions parameter in the startup function.

Syntax
MMRESULT TextToSpeechCloseLogFile
(LPTTS_HANDLE_T phTTS)
Parameters
LPTTS_HANDLE_T phTTS
Specifies a text-to-speech handle.
Return Value
This call returns a value of type MMRESULT. The value is zero if the call is successful. The return value is one of the following constants.
Constants
Description
MMSYSERR_NOERROR
Normal successful completion (zero).
MMSYSERR_ERROR
Failure to wait for pending speech, unable to close the output file, or no output file is open.
MMSYSERR_INVALHANDLE
The text-to-speech handle was invalid.


Comments
This call closes an open log file, even if it was opened with the Log in-line command.
The application must call TextToSpeechOpenLogFile before calling TextToSpeechCloseLogFile.
See Also
TextToSpeechOpenLogFile