The message to speak to the caller. XML-escaped automatically.
Optional voice: stringOptional Twilio voice name (e.g. 'Polly.Joanna', 'alice').
A complete TwiML XML document string.
twilioNotifyTwiml('Your appointment is confirmed.');
// => '<?xml version="1.0" encoding="UTF-8"?>\n<Response><Say>Your appointment is confirmed.</Say><Hangup/></Response>'
twilioNotifyTwiml('Hello', 'Polly.Joanna');
// => '...><Say voice="Polly.Joanna">Hello</Say><Hangup/></Response>'
Generate TwiML for Twilio notify mode -- synthesise
textover the call then hang up.Useful for delivering one-shot announcements (e.g. voicemail greetings, error messages, appointment reminders) without establishing a full media stream.