« Back to Product

Documentation

TTS_Speak

 boolean TTS_Speak (int $InstanceID, string $Text, boolean $Waiting) 

Parameters

InstanceID

ID of the device to be switched

Text

Text to be said

Waiting

TRUE for On, FALSE for Off

Returns

If the command succeeds, it returns TRUE, otherwise FALSE.

Description

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.

Example

TTS_Speak(12345, "Hallo Welt!", true); //Wait until it was spoken to the end
Any questions?