Log-file mode indicates that the speech samples are to be written as text, phonemes, or syllables into a log file rather than sent to an audio device. The TextToSpeechOpenLogFile function enters the text-to-speech system into a log-file mode. The TextToSpeechCloseLogFile function returns the text-to-speech system to the startup state.