Closes a speech engine.
Synopsis
error = SpeechClose(voice)
Args
voice is the voice parameter that was returned by SpeechOpen().
Returns
If success, an empty string is returned (""). If an error, an error message is returned.
Notes
If you pass a voice that was already closed, then SpeechClose() does nothing.
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 "SpeechClose"; argument 1 is required.
When your script terminates, REXX Speech will automatically close any speech devices that you have left open. But, it is good policy to close a speech device when you no longer need to use it.