The message to speak to the caller. XML-escaped automatically.
Optional voice: stringOptional Plivo voice name (e.g. 'WOMAN', 'Polly.Joanna').
A complete Plivo XML document string.
plivoNotifyXml('Your order has shipped.');
// => '<?xml version="1.0" encoding="UTF-8"?>\n<Response><Speak>Your order has shipped.</Speak><Hangup/></Response>'
plivoNotifyXml('Hello', 'WOMAN');
// => '...><Speak voice="WOMAN">Hello</Speak><Hangup/></Response>'
Generate Plivo speak + hangup XML.
Synthesises
textto the caller using Plivo's TTS engine and immediately hangs up after playback completes. Equivalent to Twilio's<Say>...<Hangup/>but uses Plivo's<Speak>element name.