Skip to main content

Say

The Say verb speaks the text specified back to the caller, enabling text-to-speech for any application.

Attributes

ATTRIBUTEDESCRIPTIONOPTIONSDEFAULT
voice Optional text-to-speech voice type. For premium text-to-speech use alice oThe voice to be used by the voice assistant. Currently, we support ElevenLabs, Telnyx and AWS voices only, for ElevenLabs voices you can pass the voice as ElevenLabs.model_id.voice_id, for Telnyx voices you can pass the voice as Telnyx.model_id.voice_id, for AWS Polly voices you can pass the voice as AWS.Polly.voice_id, we also support this notation for AWS Polly voices: Polly.voice_id alice, Polly.voice_id, Polly.voice_id-Neural, ElevenLabs.modelId.VoiceId, man, woman man
language ISO language type to be used if voice type alice is selected. If man or woman is selected, the language accent will always be en-US. This parameter is ignored when a specific Amazon Polly voice is used. -
loop The number of times to repeat the text. 0 means infinite. 0 - 10 1

Example

<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="alice">This is a premium Amazon Polly text-to-speech message!</Say>
</Response>