Skip to main content

Text to speech

The speak action will read our text to speech to the caller, which is useful for converting dynamic text into a human-sounding voice. Instead of recording the complete audio file using a human voice, text to speech allows the developers to save time.

Speak action JSON

[
{
action: "speak",
text: "Hello. Your one time password is. 9. 8. 9. 7"
}
]

Parameters type and description

ParameterTypeDescription
*actionstringThe PCMO action to control the flow of the call.
*textstringThe text content to convert as voice.
Note
All above parameters are mandatory.