Not all topics are available at the moment and content links may be broken.
boolean TTS_Speak (integer $InstanceID, string $Text, boolean $Waiting)
|InstanceID||ID of the device to be switched|
|Text||Text to be said|
|Waiting||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