Android Java SDK for Sygic 3D
 
Loading...
Searching...
No Matches
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.
 

Member Function Documentation

◆ playSound()

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().