- This article is about the Text to Speech block. For the looks block, see Say () (block).
|Category||Text to Speech|
The speak () block is a stack block and a Text to Speech block. The block uses the text to speech tool to speak the given text. It will speak the selected voice with the language selected in the Set Language to () block.
In simple animations:
when green flag clicked broadcast (message 1 v) say [Hello] when I receive [message 1 v] speak [Hello]
A non-player character in an RPG:
when Green Flag clicked forever if <(distance to (player v)) < > then speak [hello there] wait until <not<(distance to (player v)) < >> end end
Speaking text in a different language:
when green flag clicked set language to (language::variables) speak (translate [Hello] to (language::variables))
Speaking text with a different voice:
when green flag clicked set voice to (Giant v) speak [Hello]