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.
Prerequisites
Sign up for a free PIOPIY demo account.
Create your endpoint and add capacity.
Buy PIOPIY phone number.
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"}]
Properties
Property | Type | Description |
---|---|---|
*action | string | The PCMO action to control the flow of the call. |
*text | string | The text content to convert as voice. |
Note
The * marked property is mandatory.