0

Im developing android application and i'd like to ask something.

As you know, It is available to change TTL engine in configuration manually. However, what i really want to do is changing TTL engine programmatically. Unfortunately, I can't find the function for that in TextToSpeech class. There is only function,"getEngines()", for getting engine which i current use.

Is it available to change TTL(TextToSpeech) engine programmatically?

  • possible duplicate of [How to Programmtically Change TTS Default Engine](http://stackoverflow.com/questions/7362534/how-to-programmtically-change-tts-default-engine) – corsair992 Feb 09 '15 at 05:39

1 Answers1

1

For OS version 14 and up you can use the constructor

public TextToSpeech (Context context, TextToSpeech.OnInitListener listener, String engine)

to indicate the engine you want to use.

Hoan Nguyen
  • 18,033
  • 3
  • 50
  • 54