Reference Turnkey Applications Tutorials Visual Designer
Reference Turnkey Applications Tutorials Visual Designer
    • REST API
      • Overview
      • API Endpoint
      • Authentication
      • Requests
      • Responses
      • Paging
      • Reason Codes Dictionary
    • Management APIs
      • Accounts
      • Identity Access Management BETA
        • Identity Access Management Overview
        • Identity Access Management API
          • User Management
            • Create a User
            • Update a User
            • Retrieve a User
            • Delete a User
          • API Keys Management
            • Create an API Key
            • Update an API Key
            • Retrieve an API Key
            • Delete an API Key
      • Applications
      • Clients
        • Create a Client
        • Delete a Client
        • Change Client’s Password
        • Get a List of Available Clients
      • Incoming Phone Numbers
        • IncomingPhoneNumber Instance Resource
        • IncomingPhoneNumbers List Resource
        • Local IncomingPhoneNumber Factory Resource
        • Toll-Free IncomingPhoneNumber Factory Resource
        • Mobile IncomingPhoneNumber Factory Resource
        • Attach a phone number to an application
        • Enable Incoming MMS for an Application
        • Delete a phone number
        • List of Phone Numbers
        • Incoming Phone Number Regex Support
      • Notifications
      • Usage Records
      • Trace Records
    • Voice
      • Calls
        • Call List Resource URI
        • Making a Call
        • Modifying Live Calls
        • Examples
        • List Filter
        • Paging Information
      • Conference Management
        • Supported Operations
        • Conference List Resource URI
      • Conference Participants Management
        • Participants List Resource URI
      • Gather DTMF
      • Gather Speech
      • Say
      • Play
      • Hold
      • Recordings
      • Refers
        • Resource Properties
        • Supported Operations
        • Paging Information
      • Resume
      • SIP Refer Support
    • Messages API - BETA
      • Overview
      • Channel Identities
      • Send Message
      • Status Callback Parameters
      • Status Callback Events
      • Receive Message
        • Incoming Message Request Parameters
      • Get Message List
      • Get Single Message
      • Message Attributes
      • Status Description
    • SMS
      • Messages
        • Send SMS
        • Get SMS List
        • Get single SMS Information
        • SMS Attributes
      • Error Codes
    • Email
    • RCML
      • Overview
        • Interacting with Your Application
        • RCML Verbs
      • Dial
        • Client
        • Conference
        • Number
        • SIP
      • Email
      • Gather
      • Say
      • Play
      • SMS
      • Message - Beta
      • Hold
      • Resume
      • Hangup
      • Pause
      • Redirect
      • Record
      • Reject
      • Refer
    • Visual Designer API
      • List Application Templates
      • :List a Specific Application Template
      • Create a Visual Designer Application
      • Get Application Details
      • Save Application Changes
      • Create Application Parameters
      • List Application Parameters
      • Delete Application Parameters
      • Upload Application Media Files
      • List Application Media Files
      • Play Application Media Files
      • Delete Application Media Files
      • Get Application Logs
      • Delete Application Logs
      • Get Application Settings
      • Modify Application Settings
      • Rename an Application
      • Delete an Application
      • Get Visual Designer Configuration
    • Turnkey Apps APIs
      • Smart 2FA
        • Sending One-Time Passwords
        • Verifying One-Time Passwords
        • Cancel One-Time Passwords
        • Session Detail Record (SDR)
        • Get list of One-Time Passwords
        • Get a Single One-Time Password
        • Usage Record One-Time Passwords
        • Common Response Error Code
        • Limit
          • Create Limit
          • Update Limit
          • Delete Limit
          • Get List of Limits
      • Call Queuing
      • Auto Attendant
        • Users
        • Announcement
        • Auto Attendant System
        • Menu
        • Schedule
        • Phone Number
        • Usage Records
        • Third Party Integration
      • Number Masking
        • Application
        • Mask Number Pool
        • Context
        • Participants
        • Interactions
        • Usage Records
      • Task Router
docs 1.0
  • docs
    • 1.0
  • docs
  • Enterprise:RCML
  • Enterprise:Say

Say

Say

The <Say> verb is used to synthesize text to speech and play it back to the remote party.

Say Attributes

Name Description Allowed Values Default Value

voice

The gender of the voice

provider-dependent

female

language

The text language. May contain TTS provider.

provider-dependent

voicerss.en

loop

How many times to play the synthesized text. Zero will loop indefinitely.

non-negative integer

1

Nesting

The <Say> verb cannot have any other verbs or nouns nested. Only text.

Examples

Below is an example of using the <Say> verb.

<Response>
    <Say>Hello World</Say>
</Response>

You can set the language, voice and loop parameters of the <Say> verb as follows.

<Response>
        <Say voice="woman" language="fr" loop="3">Bonjour le monde</Say>
</Response>

Dictation

By default the <Say> verb will make assumptions about how to pronounce numbers, dates, times, amounts of money and other abbreviations. For example, the number '12345' will be spoken as "twelve thousand three hundred forty-five." Whereas '1 2 3 4 5' will be spoken as "one two three four five."

To control dictation of synthesized text, users can inject Speech Synthesis Markup Language (SSML) into their text.

<Response>
<Say>
  &lt;speak&gt;
     &lt;say-as interpret-as="ordinal"&gt12345&lt;/say-as&gt;
  &lt;/speak&gt;
</Say>
</Response>

For more information about text to speech and SSML support check out the Text-to-Speech and SSML Support Guide.

Configuring TTS Provider and Language

The supported voices depend on the Text-to-Speech (TTS) Service provider.

CPaaS supports the following list of TTS Provider:

TTS Provider Voices Default Voice Languages Default Language

voicerss

female only

female

VoiceRSS Documentation

en

google

male,female

male

Google TTS Documentation

en-US-Wavenet-A

awspolly

male,female

male

AWS Polly Documentation

en-US

acapela

man,woman

woman

Acapela Documentation

en

Please make sure to always specify the desired language and engine within your application.

If a user wishes to use a specific provider he can do so by specifying it in the language parameter of the <Say> tag as shown below.

language="acapela.en"
language="google.en-US-Wavenet-A"

Disk cache for Say verb

Please refer to Cache Strategy document for details about Disk Cache and Say verb execution.

Platform

Programmable Voice

Programmable SMS

Turnkey Applications

Smart 2FA

Call Queue

Auto Attendant

Number Masking

Task Router

Campaign Manager

Learn

Terms And Conditions

About

ABOUT

CONTACT US

© 2020, All rights reserved.