TextToSpeech
Creates an instance of TextToSpeech with the default TextToSpeechEngine which is based on Android's TextToSpeech.
Parameters
context
Android context.
language
Language of the messages to be synthesized. The target language must be enabled in TTS settings on the device. Defaults to en-US
.
Creates an instance of TextToSpeech with the desired TextToSpeechEngine implementation.
Parameters
ttsEngine
TextToSpeechEngine to which all of the operations will be routed.