Code example for TextToSpeech

Methods: getDefaultEngine

0
        return tts.areDefaultsEnforced();
    } 
 
    public String getDefaultEngine()
    { 
        return tts.getDefaultEngine();
    } 
    public void setPitch(float pitch)
    { 
        tts.setPitch(pitch);
    } 
    public void setSpeechRate(float speechRate)
    { 
        tts.setSpeechRate(speechRate);
    } 
 
//API 14 
//    public List<TextToSpeech.EngineInfo> getEngines() 
//    { 
//        return tts.getEngines(); 
//    }