Skip to main content
Version: v4 (Stable)

PLAYTEXT

PLAYTEXT(texte AS STRING[, language AS STRING/INTEGER [, abort AS BOOLEAN]]) AS BOOLEAN

Synthesizes and plays the text <text>.

The optional <abort> parameter forces the current messages being flushed when it is TRUE. By default this parameter is FALSE. The optional <language> parameter defines the language to select for text to speech, by using the language strings defined in the proposed voices of the selected engine (en-us, en-gb, fr-fr, de-de, ...) or the corresponding numeric language code (1033, 2057, 1036, 1031). If this parameter is not defined, the default selected voice is used.