The script payload speak() accepts: text or audio.
Discriminated by its type field, so 'text' narrows the object to TextStreamScript
and 'audio' to AudioStreamScript.
speak() additionally takes a plain string, as shorthand for a
TextStreamScript with that string as its input.
The script payload speak() accepts: text or audio.
Discriminated by its
typefield, so'text'narrows the object to TextStreamScript and'audio'to AudioStreamScript. speak() additionally takes a plain string, as shorthand for a TextStreamScript with that string as itsinput.