ph_ttswait PowerHome formula function
Description
Pauses the specified number of milliseconds or until the default TTS engine is done speaking.
Syntax
ph_ttswait ( ms )
Argument Description
ms Long. The number of milliseconds in which to wait. Use - 1 to wait indefinately until speaking is done. If the speaking is done before the timeout value, the function will return.
Return value
Integer. Returns 0 if the function returns because speaking was done. Returns 1 if the function returns because of a timeout.
Usage
Use this function when speaking TTS asynchronously and you wish to pause PowerHome execution.