say

View as MarkdownOpen in Claude

say is not a method on SwmlBuilder. The SWML schema does not define a say verb, so no dynamic method is generated for it.

To produce text-to-speech output, use the play() verb with a say: URL prefix, or pass the say: URL directly via addVerb():

1import { SwmlBuilder } from '@signalwire/sdk';
2
3const builder = new SwmlBuilder();
4builder.answer();
5
6// Use the play verb with a say: URL prefix for text-to-speech
7builder.play({ url: 'say:Hello, welcome to our service.' });
8
9// Or use addVerb directly
10builder.addVerb('play', { url: 'say:Goodbye!' });