Called when the speech engine notifies your window of a speech event.
Synopsis
event = SpeechEvent(voice, param1, param2)
Args
voice is the voice parameter that was returned by SpeechOpen().
param1 is the first argument that the speech engine passed.
param2 is the second argument that the speech engine passed.
Returns
If success, returns the string "START" if speech is starting, "STOP" if speech is stopping, or an empty string if an error or unknown event.
Notes
This is normally called by your REXX GUI window's EXTRA event handler, when it detects that a speech event has occurred.
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 "SpeechEvent"; argument 1 is required.