say
Convenience wrapper that appends a play verb with a say:-prefixed URL for
text-to-speech. Equivalent to calling builder.play({ url: 'say:${text}', ... })
but exposes the TTS options as typed arguments.
Parameters
text
Text the agent should speak. The method prepends say: to produce the
final URL passed to the underlying play verb.
opts
Optional TTS parameters.
opts.voice
Voice name for the TTS engine. Maps to say_voice in the emitted SWML.
opts.language
Language code (e.g., "en-US"). Maps to say_language in the emitted SWML.
opts.gender
Gender for TTS voice selection. Maps to say_gender in the emitted SWML.
opts.volume
Volume adjustment in dB (−40 to 40). Maps to volume on the play verb.
Returns
this — The builder instance for method chaining.