Skip to main content

Customising Text-to-Voice output

Updated over 3 weeks ago

How to adjust Text-to-Voice messages

You can change the way your Voice messages sound by adding pauses or adjusting the speech rate, pitch and volume.


Add a pause or break

You can use a comma or full stop as a small pause.

For example: "Please enter your activation code 9, 0, 9, 0, in the next 20 minutes."

If you’re able to do some basic coding, you can use the break tag.

Here's an example:

<speak>. For example: <break time='2s' />test message.</speak>


Change read-out rate

You’ll need to do some basic coding, wrap the body text in the prosody tag. The prosody tag allows you to set the pitch, rate and volume of the text.

  • The volume attribute can be set to the following values: default, silent, x-soft, soft, medium, loud and x-loud.

  • The rate attribute changes the speed of speech. Acceptable values include: x-slow, slow, medium, fast and x-fast.

  • The pitch attribute changes the pitch of the voice. You can specify this using either predefined value labels or numerically. The value labels are: default, x-low, low, medium, high and x-high. The format for specifying a numerical pitch change is: +n% and -n%.

Here's an example:

I am <prosody volume='loud'>loud and proud</prosody>, <prosody rate='fast'>quick as a cricket</prosody> and can <prosody pitch='x-low'>change my pitch</prosody>.

Adjusting your text to speech calls is set in the message body text. You can use the same message body text for sending Voice messages via Dashboard, API and Email to Voice.

Did this answer your question?