Code example for TextToSpeech

Methods: shutdown, stop

0
    } 
 
    @Override 
    public void onDestroy() { 
        if (mTts != null) {
            mTts.stop();
            mTts.shutdown();
        } 
        super.onDestroy(); 
    } 
 
}