getText

fun getText(key: String, sheetTab: String = defaultGoogleSheetTextsId, sheetLink: String = defaultGoogleSheetLink, fallback: String = keyNotFoundRegularFallback): Utterance

Returns a random utterance from the $sheetTab of the $googleSheet data sheet, from the row where the first column is $key.

Allows the use of tags inside a text (see utteranceFromTextWithTags).

Return

An utterance containing a random string from the Google Sheet row where the first column is 'key'

Parameters

key

The string from the first column in the Google Sheet's texts sub-sheet.

sheetTab

The id of the tab from which to get the texts

sheetLink

The id part of a link to the Google Sheet such as "1-yMgiselYr-8wWJIliayxoMoAjlmEpIlv86FTr8_RSM"

fallback

If the key is not found, this string will be returned instead