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.


  1. Sign up for a free PIOPIY demo account.

  2. Create your endpoint and add capacity.

  3. Buy PIOPIY phone number.

  4. Setup your webserver and map your POST method URL in answer URL.

Speak action JSON

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


*actionstringThe PCMO action to control the flow of the call.
*textstringThe text content to convert as voice.
The * marked property is mandatory.