boolean TTS_Speak (int $InstanceID, string $Text, boolean $Waiting)
ID of the device to be switched
Text to be said
TRUE for On, FALSE for Off
If the command succeeds, it returns TRUE, otherwise FALSE.
Talks about the instance with ID InstanceID in the Text specified text. The Waiting parameter specifies whether to wait until the speech is over.
This function does not work under Windows Vista/2003 or newer. This is because services such as IP-Symcon, for security reasons, can not access interactive components in the system. The Text To Speech output is such an interactive component. The problem manifests itself with the error message: OLE error 80045063
extract MSDN : SPERR_NOT_ACTIVE_SESSION.
“Neither audio output nor input is supported for non-active console sessions.”
As Alternative should the function TTS_GenerateFile in connection with the media player be used.
TTS_Speak(12345, "Hallo Welt!", true); //Wait until it was spoken to the end