# Wave-File Mode

After calling the startup function, an application can call the TextToSpeechOpenWaveOutFile call. This call blocks until all previously queued text is processed.

After the call returns, all text subsequently queued by the TextToSpeechSpeak call is converted to speech samples and written into a wave file.

The TextToSpeechCloseWaveOutFile call blocks until the speech from all previously queued text is written to the file.