Speak

Family: Sound · 2 forms

What it does

Speak takes text (a string), and returns nothing. That is the first of 2 forms.

Syntax

1
Speak(text string)
2
Speak(text string, delay integer)

Parameters

NameTypeIn forms
textstringall
delayinteger2

Every form returns

nothing

Example · generated

Form 1, the short one

Speak("hello")DO  Sync()LOOP

Form 2, with every argument

Speak("hello", 1)DO  Sync()LOOP

Speak is called with values of the types its signature asks for. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

37 commands in Sound