Speak Method

Uses the computer's speech synthesizer to pronounce the passed text string (Windows and Macintosh only).

Syntax
Speak phrase, [Interrupt]

Parameters
phrase | String | Text string to be passed to the speech synthesizer. Speak will accept any Variant that can be expressed as a String.
Interrupt | Boolean (Optional) | Optional interrupt flag. If set to True, the call will terminate the previous calls to Speak. If omitted, False is assumed.

# Notes

Speak takes a String (or any Variant that can be expressed as a String) and uses the Windows or Macintosh text-to-speech engine to speak the text. The speech is asynchronous, allowing normal program flow to continue. By default, subsequent calls to Speak before the first call has finished will queue up and speak after the completion of the previous call. If the optional interrupt flag is used and set to True, the previous Speak calls will be stopped immediately.

Speak is not supported on Linux.

# Example

The following code in a PushButton pronounces the phrase entered into an EditField.

If EditField1.text <> "" then
Speak EditField1.text
Else
Speak "Please enter some text in the field!"
End if