Speaks some text.
Synopsis
error = SpeechSpeak(voice, text, options)
Args
voice is the voice parameter that was returned by SpeechOpen().
options is any of the following:
Operation Meaning 'A' (A)synchronous playback. Text does not start speaking until a call to your GUI's message function.
If omitted, options defaults to none of the above.
Returns
If success, an empty string is returned (""). If an error, an error message is returned.
Notes
If you omit voice, or pass an empty string, a SYNTAX condition is raised. CONDITION('E') returns error number 40.5 and CONDITION('D') returns the message Missing argument in invocation of "SpeechSpeak"; argument 1 is required.
Examples
If your script uses a GUI add-on such as REXX GUI, see the example in a GUI script. Otherwise, see a non-GUI script.