Code example for TextToSpeech

Methods: getLanguage

0
        return tts.setLanguage(loc);
    } 
 
    public Locale getLanguage()
    { 
        return tts.getLanguage();
    } 
 
    public int isLanguageAvailable(Locale loc)
    { 
        return tts.isLanguageAvailable(loc);
    } 
 
    public boolean isStarted() 
    { 
        return (tts!=null);
    } 
    public boolean waitForStarted(int millis)
    { 
        try 
        {