public class TTSManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
dispose()
Deallocate the resources.
|
static int |
getChimeDuration() |
static void |
init()
Initialise the Text-To-Speech system: load and allocate the default voice
and also set the speech rate.
|
static void |
say(java.lang.String text,
boolean playChime)
Say a string if TTS system is enabled and initialised.
|
static void |
stop()
Stop the TTS system.
|
public static void init()
public static void say(java.lang.String text, boolean playChime)
text
- string to sayplayChime
- play chime sound before synthesising text if truepublic static void stop()
public static void dispose()
public static int getChimeDuration()