Skip to content

<Say> / <Speak>

Speak text to the caller with text-to-speech.

<Say> (alias <Speak>) converts its text to speech and plays it. The text is plain text or SSML: text whose root is a <speak> element is sent to the engine as SSML. Write SSML escaped (<speak>…) or inside a CDATA section; a raw child element is not read. The voice attribute picks the engine; when a vendor engine (Microsoft, Google, ElevenLabs, Deepgram, Cartesia, Soniox) fails, SIPRTC speaks the text with the default Amazon Polly voice of the same language instead of leaving silence. Answers the call first if it is not answered yet. Allowed inside <Gather> and in conference waitUrl/hold documents.

<Response>
<Say voice="Elevenlabs.en-GB-George" speed="0.9">Your order has shipped.</Say>
<Say voice="woman" language="fr-FR" loop="2">Bonjour.</Say>
<Say>&lt;speak&gt;Press &lt;emphasis&gt;one&lt;/emphasis&gt; for sales.&lt;/speak&gt;</Say>
</Response>
Attribute Values Default Description
voice string default (Polly voice for the language) The voice. Generic voices man, woman, alice and default map to an Amazon Polly voice for the language (default: Salli for en-US). Polly.<VoiceId> or a bare Polly voice id (Joanna, Raveena, …) picks that Polly voice. Vendor voices are written <Engine>.<voice>: Microsoft.en-US-AvaNeural (bare Microsoft = en-US-AvaNeural), Google.en-US-Standard-C, Deepgram.aura-asteria-en, and for ElevenLabs, Cartesia and Soniox <Engine>.<lang>-<REGION>-<voice id> (e.g. Cartesia.es-MX-Daniela), where the locale is the language spoken; the engine name is matched in any case.
language string en-US BCP-47 language, e.g. en-US, en-GB, de-DE, fr-FR, es-MX, hi-IN. Chooses the Polly voice for a generic voice and is passed to Google. When the voice has no engine prefix the language must be one of en-US, en-AU, en-CA, en-GB, en-IN, de-DE, sv-SE, zh-CN, zh-HK, zh-TW, pl-PL, pt-BR, pt-PT, ru-RU, fr-CA, fr-FR, it-IT, ja-JP, ko-KR, nb-NO, nl-NL, ca-ES, es-ES, es-MX, fi-FI or da-DK, else en-US is used.
loop How many times to play. See the verb for what 0 means 1 How many times to say the text. 0 repeats it (up to 1000 times) until the call moves on or ends.
speed number 1 Speaking rate, 1 = normal. Used by ElevenLabs (clamped to 0.7-1.2), Cartesia (0.6-1.5) and Microsoft (SSML prosody rate); other engines ignore it.
textType string — Accepted and ignored. Accepted for compatibility; SIPRTC decides text or SSML from the content itself.