Speech synthesis convert Text to speech, You can either give text by input or you can pass a widget id it'll read text inside your widget and speak it in language which you have chosen.
There are several client actions which can help you to avail Text to Speech functioanlity,
SpeekText - The SpeekText action adds your given text or utterance to the utterance queue; it will be spoken when any other utterances queued before it have been spoken,
SpeekWidgetText - The SpeekWidgetText action adds text inside given wisget id to the utterance queue; it will be spoken when any other utterances queued before it have been spoken.
Pause - This action puts your current utterance into a paused state..
Resume - The resume action puts your current current utterance into a non-paused state: resumes it if it was already paused.
Stop - The stop action removes all utterances from the utterance queue. If an utterance is currently being spoken, speaking will stop immediately.
GetLanguages - Returns a list of all the available languages on the current device.
IsAvailable - Check if speechSynthesis is available in current device.
You can also give Language, Volume, Rate and Pitch property values when you call SpeekText or SpeekWidgetText actions.