Operator Type:
Operator Scope of Action:
Operator Purpose:
Data Type Returned:
Operator First Added:
Operator in Current Baseline:
Operator Last Altered:
Operator Has Optional Arguments:
Operator Has Newer Dot-Operator Variant:
Function [other Function type actions]
Item [operators of similar scope]
Data manipulation [other Data manipulation operators]
success boolean
v9.5.0
Baseline
As at baseline
[More on optional operator arguments]
Yes
speak(MessageStr[, voiceNameStr])
speaks a MessageStr string using Mac text-to-speech. If another string is being spoken, the new phrase is spoken after the current phrase is complete:
speak("Hello");
MessageStr can be a variable or attribute reference:
speak($Text);
An optional second argument voiceNameStr identifies the voice the speech synthesiser should use. If the nominated voiceNameStr is not present no sound is played. The closing parentheses are only needed if the extra argument is being passed:
speak($Text.,"Tessa");
See also String.speak().
See also—notes linking to here: