- What: Use SSML markup in Plivo’s
<Speak>XML element to control TTS voice, pitch, volume, rate, pronunciation, and pauses. Powered by Amazon Polly (27 languages, 40+ voices) - How: Set
voice="Polly.<VoiceName>"in your Speak tag, then use SSML tags like<prosody>,<break>,<emphasis>,<phoneme>,<say-as> - Cost: Currently free (beta). Will eventually be billed per character synthesized
- Limitation: Max 3,000 characters per Speak tag. Only works with Polly voices (not legacy Plivo voices). Some Amazon Polly tags are not supported (
<amazon:effect>,<amazon:auto-breaths>)
voice attribute of Plivo’s <Speak> XML tag. Note that Polly voices must be namespaced with a Polly prefix.
For example:
SSML tags
You can use these SSML tags within Plivo XML.
Note: Plivo doesn’t support these Amazon Polly-specific tags in Plivo XML:
- <amazon:auto-breaths>
- <amazon:effect name=“drc”>
- <amazon:effect phonation=“soft”>
- <amazon:effect vocal-tract-length>
- <amazon: effect name=“whispered”>