how to get to know programmatically whether any TTS engine installed in my device or not?

前端 未结 4 684
逝去的感伤
逝去的感伤 2021-01-05 01:25

I would like to know programmatically how to get TTS engine info of the device for e.g. whether any TTS engine is installed or not , if installed then what are those and wha

4条回答
  •  长发绾君心
    2021-01-05 02:12

    This gives you the list of TTS Engines installed on your Android.

    tts = new TextToSpeech(this, this);
    for (TextToSpeech.EngineInfo engines : tts.getEngines()) {
    Log.d("Engine Info " , engines.toString());
    }
    

提交回复
热议问题