say

View as MarkdownOpen in Claude

Queue text to be spoken by the agent. Internally, this appends a prompt section to the underlying SignalWire AgentBase so the AI speaks the provided text.

Signature

1say(text: string): void

Parameters

text
stringRequired

The text for the agent to speak.

Returns

void

Example

1const session = new AgentSession();
2await session.start({ agent });
3
4session.say('Your appointment is confirmed for tomorrow at 3 PM.');