Code example for TextToSpeech

Methods: shutdown, stop

0
    context.registerReceiver(receiver, filter);
} 
 
public static void Shutdown() { 
    if (mTts != null) {
        mTts.stop();
        mTts.shutdown();
    } 
} 
 
public static boolean isSpeaking() { 
    return isSpeaking;
} 
 
}