tts_voice object
This method will speak a given string into a Wave file, pausing the execution until the process is completed.
bool speak_to_file(string filename, string text)
Parameters:
filename
The name of the Wave file to be created.
text
The text to speak.
Return value:
true on success, false on failure.
Remarks:
None.
Example:

    // Speak some text into a file.

    tts_voice speech;

    void main()
    {
    speech.speak_to_file("speech.wav", "This is some text, which will be spoken into a file called speech.wav.");
    }