Java SDK for 2D
 All Classes Namespaces Functions Variables Pages
ApiTts Class Reference

Static Public Member Functions

static void playSound (String text, int maxTime) throws GeneralException
 Uses the TTS engine, if installed, to speak the given text message. More...
 

Member Function Documentation

static void playSound ( String  text,
int  maxTime 
) throws GeneralException
static

Uses the TTS engine, if installed, to speak the given text message.

Parameters
textText message to be read by TTS
maxTimeMaximum of time (in milliseconds) function can take. If maxTime=0 function execution is not time limited.
Exceptions
GeneralExceptionthe general exception

References Api.getInstance(), and Api.getService().