speak
fun speak(context: Context, text: String?, language: String? = null, useIterationSettings: Boolean = false)
Reproduce a message to read according to Text-To-Speech activation
Parameters
context
The application context
text
The text to read
language
In which language the message will be read. If not defined the message will be read according to settings. Default: english.
use Iteration Settings
Determines whether or not to use TTS Iterations Settings. Default is false.