Skip to main content
Version: 4.64

startSpeech

Reads the given text to the user based on the language provided.

note

Some languages must be provided by a specific Text-To-Speach (TTS) engine, which must be downloaded separately depending on the user's device and operating system.

Field Configurations​

KeyTypeDescriptionDefault Value
"params"Objectundefinednull

Parameters​

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"language"StringThe language as a two letter language code with an optional country codenull
"queueMode"StringThe queue modenull
"text" (required)StringThe text the readnull

Inherited​

From Base Action

Base Action

Field Configurations

KeyTypeDescriptionDefault Value
"dynamicParams"ObjectDynamic params to retrieve data from a specific context e.g. a userSetting.null
"leadingDelimiter"StringThe leading mustache delimiter to use.null
"params"Object,ArrayObject containing the properties of the action.null
"trailingDelimiter"StringThe trailing mustache delimiter to use.null
"type"StringType name of the action.null

Examples​

Example 1: Start text-to-speech playback​

Show ExampleHide Example

The provided text will be read aloud in the specified language using text-to-speech.

{
"type": "startSpeech",
"params": {
"text": "Hello There!",
"language": "en-US",
"queueMode": "afterCurrent"
}
}