Command to play a message on the channel
OptionaleventsOrdered list of messages to play.
OptionalmessagesName of the message for identification and reference within the call session. This name is used to uniquely identify the message and must be unique within the current call session. This name can be referenced in other commands (e.g., stopMessages) to control this specific message.
Plays one or more messages on the call. Multiple messages in the array are played sequentially in order. This is a non-blocking command — the next command in the sequence executes immediately while messages play in parallel. Playback outcomes are handled via the
eventsproperty. TheonFinishevent can be used to run a command after all messages complete.